lidarr/NzbDrone.Common/Cache/ICached.cs
Mark McDowall 56cd80d24a TrackedCommands are cleaned up automatically
TrackedCommandCleanupCommand is not tracked
2013-09-01 21:12:35 -07:00

20 lines
No EOL
441 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);
T Remove(string key);
ICollection<T> Values { get; }
}
}