mirror of https://github.com/Sonarr/Sonarr
18 lines
441 B
C#
18 lines
441 B
C#
![]() |
using System;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace NzbDrone.Common.Cache
|
||
|
{
|
||
|
public interface ICachedDictionary<TValue> : ICached
|
||
|
{
|
||
|
void RefreshIfExpired();
|
||
|
void RefreshIfExpired(TimeSpan ttl);
|
||
|
void Refresh();
|
||
|
void Update(IDictionary<string, TValue> items);
|
||
|
void ExtendTTL();
|
||
|
TValue Get(string key);
|
||
|
TValue Find(string key);
|
||
|
bool IsExpired(TimeSpan ttl);
|
||
|
}
|
||
|
}
|