1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-03-04 02:38:18 +00:00
Radarr/NzbDrone.Common/Cache/ICached.cs

20 lines
444 B
C#
Raw Normal View History

2013-04-30 18:11:00 -07:00
using System;
2013-05-30 16:32:50 -07:00
using System.Collections.Generic;
2013-04-30 18:11:00 -07:00
namespace NzbDrone.Common.Cache
{
2013-05-30 16:32:50 -07:00
public interface ICached
2013-04-30 18:11:00 -07:00
{
void Clear();
2013-05-30 16:32:50 -07:00
}
public interface ICached<T> : ICached
{
2013-07-23 17:35:35 -07:00
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);
2013-05-30 16:32:50 -07:00
ICollection<T> Values { get; }
2013-04-30 18:11:00 -07:00
}
}