1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00
Files
Radarr/src/NzbDrone.Common/Cache/ICached.cs
T
Mark McDowall 638e3ca898 Command queue
New: Adding multiple series will queue them instead of running all at once
New: Slower scheduled tasks won't be block others from running
2015-03-16 22:07:02 -07:00

22 lines
500 B
C#

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<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);
ICollection<T> Values { get; }
}
}