PHP MemCached Advanced Cache app Code
Memcache Common methods
Memcache::add &md; Ash Add a value that, if it already exists, returns FALSEMEMCACHE::ADD server-add a server address to use memcache::close-close a Memcache object memcache::connect- Create a Memcache object memcache::d ebug-Control the Debug function memcache::d ecrement-subtract from the value in a saved key memcache::d elete-Delete a key value memcache:: flush-clears all cached data memcache:: get-gets a key value memcache::getextendedstats-gets the running system statistics for all processes in the process pool memcache::getserverstatus- Gets the parameters that run the server memcache::getstats-returns some run statistics for the server memcache::getversion-returns the version information for the memcache that is running memcache::increment- To add a value in a saved key memcache::p connect-Create a Memcache Persistent connection object Memcache::replace-r overwrite an existing key memcache::set-adding a value, If it already exists, overwrite the memcache::setcompressthreshold-to compress data larger than a certain size memcache::setserverparams-modify the server's parameters at run time
Connect (' 127.0.0.1 ', 11211) or Die ("Connection Failed"), $memcache->set (' name ', ' Zhang San '); $val = $memcache->get (' name ');? >
http://www.bkjia.com/PHPjc/994955.html www.bkjia.com true http://www.bkjia.com/PHPjc/994955.html techarticle PHP MemCached Advanced Cache application code Memcache common Methods Memcache::add MD; ash; Add a value that, if it already exists, returns Falsememcache::add Server to add a ready-to-use ...