Example #1
0
 public virtual void Add(T item)
 {
     try
     {
         //clear the cache before add to avoid get NullObject from cache.
         ClearObjectCache(item);
         innerProvider.Add(item);
     }
     finally
     {
         ClearObjectCache(item);
     }
 }
Example #2
0
 public virtual void Add(T item)
 {
     ClearObjectCache(item);
     innerProvider.Add(item);
 }