Memcache is installed on the service side of memcached-1.4.5.tar.gz
My client has installed
Memcached-2.1.0.tgz
Libmemcached-1.0.18.tar.gz
Now with Phpinfo can see already installed memcached
Memcached Support Enabled
Version 2.1.0
libmemcached version 1.0.18
Session Support Yes
Igbinary Support Yes
JSON Support No
Directive Local Value Master value
Memcached.compression_factor 1.3 1.3
Memcached.compression_threshold 20480 20480
Memcached.compression_type Fastlz Fastlz
Memcached.serializer igbinary Igbinary
Memcached.sess_binary No value No value
Memcached.sess_lock_wait 150000 150000
Memcached.sess_locking 1 1
Memcached.sess_prefix Memc.sess.key. Memc.sess.key.
But when the code calls new Memcached (), the trying to clone an Uncloneable object of class Memcached
Reply to discussion (solution)
Online Waiting for the master
You try $memcache = new Memcache;
According to your method, the report class ' Memcache ' not found, I installed is memcached,
Now the situation is I new, reported trying to the clone an Uncloneable object of Class Memcached, and then I tried to static call, the result said Non-static Method Memcached::get () CA Nnot is called statically, assuming $this from incompatible context. Tangled in ....
Is there a master with PHP memcached
Knot paste, did not solve the problem, with Memcache.