I wanted to use caching in my project and thought I'd use Memcached. For that, I installed memcached.
When I output my phpinfo(); I can see, that the extension exists

However, when wanting to use it with Cache::get(), I get the following error:
Could not establish Memcached connection.
I have the following values in my .env
MEMCACHED_HOST=127.0.0.1
MEMCACHED_PORT=11211
My php.ini has the following content for memcached
extension=memcached.so
What do I need to do, to use memcached now and establish a connection successfully?
The Exceptions says:
Could not establish Memcached connection
So, PHP Memcached "extension" can not "connect" to "Memcached".
Please, try installing:
sudo apt-get install memcached
sudo service memcached status
And you are ready to go!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With