This article will introduce to you the differences between php memcache and memcached. I hope some methods will be helpful to you.
The first thing to make sure is that the memcached service must be enabled in order to use memcache and memcached’s php api.
So what are the differences between these two APIs for the memcached service?
1. memcache is PHP's own extension, and memcached is an extension based on libmemcached.
2.memcache only provides some basic functions, such as set, get, replace, delete, flush, etc.,
Memcached provides richer functions, including setOption (setOptions), cas, getMulti (setMulti), getMultiByKey (setMultiByKey), addServers (with s, multiple nodes can be connected at one time).
3. I heard that memcached has higher performance than memcache because it supports binary protocol.
4.memcache supports persistent connections, but memcached does not.