Beispiel #1
0
        public override void RemoveCache(int id)
        {
            string cacheId = string.Empty;

            // hashtable
            this.RemoveCache(HID.Key);
            this.RemoveCache(HID.KeyVersion);

            // remove item
            cacheId = this.GetCacheKey(id);
            this.RemoveCache(cacheId);
            HList[cacheId] = null;
            HID.Remove(id.ToString());
        }
Beispiel #2
0
        public override void RemoveCache(Guid id, int type, string userId)
        {
            string cacheId = string.Empty;

            // hashtable
            this.RemoveCache(HID.Key);
            this.RemoveCache(HID.KeyVersion);

            // remove item
            cacheId = this.GetCacheKey(userId, 1);
            this.RemoveCache(cacheId);
            HList[cacheId] = null;
            cacheId        = this.GetCacheKey(userId, 2);
            this.RemoveCache(cacheId);
            HList[cacheId] = null;
            HID.Remove(id.ToString());
        }
        public override void RemoveCache(Guid id)
        {
            string cacheId = string.Empty;

            // hashtable
            this.RemoveCache(HID.Key);
            this.RemoveCache(HID.KeyVersion);

            // get all
            cacheId = this.GetCacheKey(Punnel.Core.Entities.Conts.CACHE_KEY_ALL);
            this.RemoveCache(cacheId);

            // remove item
            cacheId = this.GetCacheKey(id);
            this.RemoveCache(cacheId);
            HID.Remove(id.ToString());
        }
Beispiel #4
0
        public override void RemoveCache(Guid id, int type)
        {
            string cacheId = string.Empty;

            // hashtable
            this.RemoveCache(HID.Key);
            this.RemoveCache(HID.KeyVersion);

            // get all
            cacheId = this.GetCacheKey(Punnel.Core.Entities.Conts.CACHE_KEY_ALL);
            this.RemoveCache(cacheId);

            // remove item
            cacheId = this.GetCacheKey(id);
            this.RemoveCache(cacheId.ToString());

            cacheId = this.GetCacheKey("GetByParentId", type);
            this.RemoveCache(cacheId.ToString());
            HID.Remove(id.ToString());
            HList[type] = null;
        }