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