Пример #1
0
 public override void Update(string groupName, string key, object value, int seconds)
 {
     if (!CachedService.ContainsKey(groupName))
     {
         if (null != _logger)
         {
             _logger.WarnFormat("the grouopname:{0} is not exist", groupName);
         }
         throw new Exception("No exist the cached group name.");
     }
     CachedService[groupName].Update(key, value, seconds);
 }
Пример #2
0
 public override void Remove(string groupName)
 {
     if (!CachedService.ContainsKey(groupName))
     {
         if (null != _logger)
         {
             _logger.WarnFormat("the grouopname:{0} is not exist", groupName);
         }
         throw new Exception("No exist the cached group name.");
     }
     CachedService[groupName].Remove();
 }
Пример #3
0
 public override object Get(string groupName, string key)
 {
     if (!CachedService.ContainsKey(groupName))
     {
         if (null != _logger)
         {
             _logger.WarnFormat("the grouopname:{0} is not exist", groupName);
         }
         throw new Exception("No exist the cached group name.");
     }
     return(CachedService[groupName].Get(key));
 }