mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
772ab3c921
Added tests for Cache.Remove
20 lines
No EOL
444 B
C#
20 lines
No EOL
444 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);
|
|
void Remove(string key);
|
|
|
|
ICollection<T> Values { get; }
|
|
}
|
|
} |