2013-05-01 01:11:00 +00:00
|
|
|
|
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);
|
2013-05-23 05:12:01 +00:00
|
|
|
|
T Get(string key);
|
2013-05-01 01:11:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|