added new in memory cache.

This commit is contained in:
Keivan Beigi 2013-04-30 18:11:00 -07:00
commit 098036d49a
7 changed files with 202 additions and 0 deletions

View file

@ -0,0 +1,13 @@
using System;
namespace NzbDrone.Common.Cache
{
public interface ICached<T>
{
void Set(string key, T value);
T Get(string key, Func<T> function);
bool ContainsKey(string key);
void Clear();
void Remove(string key);
}
}