谁能找找如下代码该引用那些类库?如何引用?用过分布式缓存的朋友帮忙看看!
刘津宇教编程 企业官方账号 2011-10-09 09:52:57 using System.Data.Caching;
private Cache GetCurrentCache()
{
Cache dCache;
ServerEndPoint[] servers = new ServerEndPoint[1];
servers[0] = new ServerEndPoint("localhost", 22233, "DistributedCacheService");
bool routingClient = true;
bool localCache = false;
var factory = new CacheFactory(servers, routingClient, localCache);
dCache = factory.GetCache("default");
return dCache;
}
参考链接:http://www.cnblogs.com/Terrylee/archive/2008/11/20/Microsoft-Distributed-Cache-Velocity-Part1.html
我已经把CacheBaseLibrary和ClientLibrary这两个程序集添加到应用程中了,还是报错,用过分布式缓存的朋友帮忙看看!