I've been working with PHP for a while now, and recently I came across something called Memcache and Memcached. I've heard that they are used for caching data in PHP applications and can really improve performance. But I'm not quite sure about the difference between the two.
From what I gather, Memcache is a PHP extension that provides a way to communicate with a Memcached server, which is an external caching system. But I'm not entirely sure if my understanding is correct.
Also, I have multiple projects in PHP and I was wondering if it's possible to use a single instance of a Memcache server for all these projects. I don't want to set up a separate Memcache server for each project if that's not necessary.
I would really appreciate it if someone could shed some light on this topic and help me understand how Memcache and Memcached work in PHP. And if it's possible to share a single Memcache instance between multiple PHP projects, that would be fantastic.
Thanks in advance!