Пример #1
0
        private void InvalidCache(Guid id)
        {
            string cacheKey       = BuildCacheKey(id);
            string cacheMasterKey = BuildCacheMasterKey();

            _cache.Remove(cacheKey);
            _cache.Remove(cacheMasterKey);
        }
Пример #2
0
 public void RemoveUser(string userId)
 {
     try
     {
         _cache.Remove(GetUserKey(userId));
     }
     catch (Exception)
     {
         throw;
     }
 }