MemcachedClient.Setup("TestCache", new string[] { MemcachedIP });
我在函数里面存取缓存,这个代码应该写在什么地方。。

解决方案 »

  1.   

    http://www.cnblogs.com/yukaizhao/archive/2008/11/10/memcached_client_usage.html
      

  2.   

    Trying to configure MemcachedClient instance "TestCache" twice.
    报这个错误
      

  3.   

    这个好像版本不对。我的代码
     MemcachedClient.Setup("TestCache", new string[] { "192.168.0.1" });
                MemcachedClient cache = MemcachedClient.GetInstance("PSOCache");
                cache.SendReceiveTimeout = 5000;
                
                cache.MinPoolSize = 1;
                cache.MaxPoolSize = 5;
                cache.Set("jinjazz", "AAA");
                object obj = cache.Get("jinjazz");
                Console.WriteLine(obj);
                Console.Read();
      

  4.   

    是在类里面用的,没有用在WEB上。