Skip to content

Commit

Permalink
Added reminder to refactor the event handler of the ICacheProvider in…
Browse files Browse the repository at this point in the history
…terface in version 5.
  • Loading branch information
NightOwl888 committed Sep 2, 2014
1 parent e256eb1 commit e0dfa5e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public interface ICacheProvider<T>
bool TryGetValue(string key, out LazyLock value);
void Add(string key, LazyLock item, ICacheDetails cacheDetails);
void Remove(string key);

// NOTE: In version 5, this should be changed to a ProviderItemRemovedEventArgs to pass the LazyLock
// instead of T back to the MicroCache to make it consistently deal with a LazyLock and the
// MicroCache consistently deal with a T.
event EventHandler<MicroCacheItemRemovedEventArgs<T>> ItemRemoved;
}
}

0 comments on commit e0dfa5e

Please sign in to comment.