Example #1
0
 public void Remove(CacheHashkey key)
 {
     if (htSyn.ContainsKey(key))
     {
         htSyn.Remove(key);
     }
 }
Example #2
0
 public dynamic Get(CacheHashkey key)
 {
     if (htSyn.ContainsKey(key))
     {
         return(htSyn[key]);
     }
     throw new FinanceAccountDataException(FinanceAccountDataErrorCode.CACHE_DATA_NOT_EXIST);
 }
Example #3
0
 public void Set(CacheHashkey key, dynamic value)
 {
     if (htSyn.ContainsKey(key))
     {
         htSyn[key] = value;
     }
     else
     {
         htSyn.Add(key, value);
     }
 }
Example #4
0
 public bool ContainsKey(CacheHashkey key)
 {
     return(htSyn.ContainsKey(key));
 }