PHP MemCached Advanced Cache application Code _php tutorial

Source: Internet
Author: User
Tags php memcached

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.