non-working cached repository.

This commit is contained in:
Keivan Beigi 2013-05-30 16:32:50 -07:00
commit 5b2410da3f
6 changed files with 92 additions and 5 deletions

View file

@ -1,15 +1,23 @@
using System;
using System.Collections.Generic;
namespace NzbDrone.Common.Cache
{
public interface ICached<T>
public interface ICached
{
void Set(string key, T value);
T Get(string key, Func<T> function);
bool ContainsKey(string key);
void Clear();
void Remove(string key);
}
public interface ICached<T> : ICached
{
void Set(string key, T value);
T Get(string key, Func<T> function);
T Get(string key);
T Find(string key);
ICollection<T> Values { get; }
ICollection<string> Keys { get; }
}
}