.net/c# memcached缓存获取所有缓存键的方法步骤

网络编程 2021-07-04 22:40www.168986.cn编程入门
这篇文章主要介绍了./c# memcached缓存获取所有缓存键的方法步骤,大家参考使用吧

使用组件

memcached 1.2.6

. 类库 memcacheddot_clientlib-1.1.5

1.增加memcacheddot_clientlib-1.1.5代码

下载好组件后,用vs打开.类库memcacheddot_clientlib-1.1.5,打开MemCachedClient.cs,增加如下方法:

代码如下:

public Hashtable Stats(ArrayList servers, string mand)
        {

            // get SockIOPool instance
            SockIOPool pool = SockIOPool.GetInstance(_poolName);

            // return false if unable to get SockIO obj
            if (pool == null)
            {
                //if(log.IsErrorEnabled)
                //{
                //    log.Error(GetLocalizedString("unable to get socket pool"));
                /

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by