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); }
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(); }
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)); }