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, =