Lidarr/NzbDrone.Common/Cache/ICached.cs

23 lines
497 B
C#
Raw Normal View History

2013-05-01 01:11:00 +00:00
using System;
2013-05-30 23:32:50 +00:00
using System.Collections.Generic;
2013-05-01 01:11:00 +00:00
namespace NzbDrone.Common.Cache
{
2013-05-30 23:32:50 +00:00
public interface ICached
2013-05-01 01:11:00 +00:00
{
bool ContainsKey(string key);
void Clear();
void Remove(string key);
2013-05-30 23:32:50 +00:00
}
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);
2013-05-30 23:32:50 +00:00
ICollection<T> Values { get; }
ICollection<string> Keys { get; }
2013-05-01 01:11:00 +00:00
}
}