1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-23 02:05:27 +02:00
Sonarr/NzbDrone.Common/Cache/ICached.cs
Keivan Beigi 772ab3c921 Cahce.Remove is now void
Added tests for Cache.Remove
2013-09-01 21:12:39 -07:00

20 lines
444 B
C#

using System;
using System.Collections.Generic;
namespace NzbDrone.Common.Cache
{
public interface ICached
{
void Clear();
}
public interface ICached<T> : ICached
{
void Set(string key, T value, TimeSpan? lifetime = null);
T Get(string key, Func<T> function, TimeSpan? lifeTime = null);
T Find(string key);
void Remove(string key);
ICollection<T> Values { get; }
}
}