protected void SetDepend(string key, object output, string dependKey, int timeout) { MemCachedStrategy mc = new MemCachedStrategy(); mc.TimeOut = timeout; mc.AddObjectWithDepend(key, output, dependKey); }
public void SetDepend(string key, object output, string dependKey) { MemCachedStrategy mc = new MemCachedStrategy(); mc.TimeOut = MemcachedCacheTime; string[] temp = { dependKey }; mc.AddObjectWithDepend(key, output, temp); }