Beispiel #1
0
        protected void SetDepend(string key, object output, string dependKey, int timeout)
        {
            MemCachedStrategy mc = new MemCachedStrategy();

            mc.TimeOut = timeout;
            mc.AddObjectWithDepend(key, output, dependKey);
        }
Beispiel #2
0
        public void SetDepend(string key, object output, string dependKey)
        {
            MemCachedStrategy mc = new MemCachedStrategy();

            mc.TimeOut = MemcachedCacheTime;
            string[] temp = { dependKey };
            mc.AddObjectWithDepend(key, output, temp);
        }