1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00
Sonarr/NzbDrone.Common/Cache/ICached.cs
2013-05-30 17:14:18 -07:00

23 lines
No EOL
497 B
C#

using System;
using System.Collections.Generic;
namespace NzbDrone.Common.Cache
{
public interface ICached
{
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; }
}
}