Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Memcached with PHP7?

I was trying to find any information about using Memcached with PHP7, but I failed. The only valuable information is short Readme.md of php-memcached repo.
Unfortunately, its travis build failed as well as 30/126 tests on my machine.

However make install command was successful and created memcached.so file. Does it mean I can use this extension in production or it still has bugs and is not recommended for using?

I will very appreciate any advice or working solution.

like image 704
James Akwuh Avatar asked Apr 02 '16 13:04

James Akwuh


People also ask

What is the difference between Memcache and Memcached?

They both have very basic difference while storing value. Memcache mostly considers every value as string whereas Memcached stores it value's original type. Thumbs up for your answer !


1 Answers

To install memcached on the latest ubuntu for the latest php use:

sudo apt-get install php-memcached
like image 176
patrick Avatar answered Sep 20 '22 03:09

patrick