General Memcached class (based on Memcached Client Library)

Source: Internet
Author: User
Tags delete cache

Share your own general Memcached classes. Thank you for your help ~

The. NET memcached client library client + Memcached Providers

 

Create Memcache service MemcachedClient CreateServer (ArrayList serverlist, SockIOPool pool = MemcachedClient mc ==; whether the cache has CacheIsExists (ArrayList serverlist, poolName, = add cache (add if the key does not exist, if a key exists, you cannot add AddCache (ArrayList serverlist, poolName, key, value, = add cache (add if the key does not exist, overwrite the key) SetCache (ArrayList serverlist, poolName, key, value, = Replace the cache with the cache (if the key exists, it can be replaced if it does not exist) ReplaceCache (ArrayList serverlist, poolName, key, v Alue, = get cache get the cache GetCache (ArrayList serverlist, poolName, = get the value Hashtable GetCacheHt (ArrayList serverlist, poolName, = get the value [] GetCacheList (ArrayList serverlist, poolName, = [] list = (I =; I <list. length; I ++ (list [I]! = Delete cache DelCache (ArrayList serverlist, poolName, = clear all cache FlushAll (ArrayList serverlist, =

 

Related Article

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.