[Php] common Memcache Methods

Source: Internet
Author: User
Memcache-Memcache class Memcache: add-add an entry to the Cache Server Memcache: addServer-add a memcache server Memcache: close-close memcache connection to the connection pool :: connect-open a memcached server to connect to Memcache: decrement-Reduce Element

Memcache-Memcache class Memcache: add-add an entry to the Cache Server Memcache: addServer-add a memcache server Memcache: close-close memcache connection to the connection pool :: connect-open a memcached server to connect to Memcache: decrement-Reduce Element

Memcache-Memcache class
Memcache: add-add an entry to the Cache Server
Memcache: addServer-Add a memcache server to the connection pool
Memcache: close-close memcache connection
Memcache: connect-open a memcached server connection
Memcache: decrement-reduce the element value
Memcache: delete-delete an element from the server
Memcache: flush-clean (delete) all elements that have been stored
Memcache: get-an element retrieved from the server
Memcache: getExtendedStats-statistics on all servers in the cache server pool
Memcache: getServerStatus-used to obtain the online/offline status of a server
Memcache: getStats-Get server statistics
Memcache: getVersion-the server version is returned.
Memcache: increment-Add the value of an element
Memcache: pconnect-open a persistent connection to the server
Memcache: replace-replace the value of an existing element
Memcache: set-data is stored on the server ??? Store data at the server
Memcache: setCompressThreshold-Enable Automatic Compaction
Memcache: setServerParams-Modify server parameters and status during runtime

Memcache Functions
Memcache_debug-switch debug output on/off

Original article address: [php] Memcache common methods. Thank you for sharing them with me.

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.