PHPMemCached advanced cache application code. PHPMemCached advanced cache application code memcache common method Memcache: addmd; ash; add a value. if it already exists, return falseMemcache :: addServer adds an available PHP MemCached advanced cache application code
Common memcache methods
Memcache: add & md; ash; add a value. if it already exists, falseMemcache: add Server-add a available Server address Memcache :: close-close a Memcache object Memcache: connect-create a Memcache object Memcache: debug-control debugging function Memcache: decrement-perform the subtraction operation on the values of a saved key. Memcache:: delete-delete a key value Memcache: flush-clear all cached data Memcache: get-get a key value Memcache :: getExtendedStats-get the running system statistics of all processes in the process pool Memcache: getServerStatus-get the running server parameter Memcache: getStats-return some running statistics of the server Memcache :: getVersion-returns the version information of the running Memcache. Memcache: increment-adds the value of a saved key. Memcache: pconnect-creates a persistent connection object for Memcache :: replace-R overwrites an existing key to Memcache: set-add a value. if it already exists, overwrites Memcache :: setCompressThreshold-compress Memcache: setServerParams for data larger than a certain size-modify server parameters at runtime
Connect ('2017. 0.0.1 ', 11211) or die ("connection failed"); $ memcache-> set ('name', 'Zhang San '); $ val = $ memcache-> get ('name');?>
Http://www.bkjia.com/PHPjc/994955.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/994955.htmlTechArticlePHP MemCached advanced cache application code memcache common method Memcache: add md; ash; add a value, if already exists, returns falseMemcache :: add Server to add a usable...