Exemple #1
0
 /// <summary>
 ///     Adds an item to the cache
 /// </summary>
 /// <param name="key">Key</param>
 /// <param name="value">Value</param>
 public virtual void Add(TKeyType key, object value)
 {
     InternalCache.AddOrUpdate(key, value, (x, y) => value);
 }
Exemple #2
0
 /// <summary>
 /// Adds an item to the cache
 /// </summary>
 /// <param name="Key">Key</param>
 /// <param name="Value">Value</param>
 public virtual void Add(KeyType Key, object Value)
 {
     InternalCache.AddOrUpdate(Key, Value, (x, y) => Value);
 }