1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-21 01:49:57 +02:00
Sonarr/NzbDrone.Common/Cache/ICached.cs

20 lines
444 B
C#
Raw Normal View History

2013-05-01 04:11:00 +03:00
using System;
2013-05-31 02:32:50 +03:00
using System.Collections.Generic;
2013-05-01 04:11:00 +03:00
namespace NzbDrone.Common.Cache
{
2013-05-31 02:32:50 +03:00
public interface ICached
2013-05-01 04:11:00 +03:00
{
void Clear();
2013-05-31 02:32:50 +03:00
}
public interface ICached<T> : ICached
{
2013-07-24 03:35:35 +03: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-31 02:32:50 +03:00
ICollection<T> Values { get; }
2013-05-01 04:11:00 +03:00
}
}