You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Radarr/NzbDrone.Common/Cache/ICached.cs

20 lines
444 B

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; }
}
}