mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 09:47:39 +00:00
19 lines
No EOL
411 B
C#
19 lines
No EOL
411 B
C#
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);
|
|
|
|
ICollection<T> Values { get; }
|
|
}
|
|
} |