mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 11:48:26 -07:00
Tuned down DB logging
Added cache to scene mapping.
This commit is contained in:
parent
2a12b051bc
commit
acf54203e5
8 changed files with 68 additions and 31 deletions
|
@ -25,6 +25,13 @@ namespace NzbDrone.Common.Cache
|
|||
return Get(key, () => { throw new KeyNotFoundException(key); });
|
||||
}
|
||||
|
||||
public T Find(string key)
|
||||
{
|
||||
T value;
|
||||
_store.TryGetValue(key, out value);
|
||||
return value;
|
||||
}
|
||||
|
||||
public T Get(string key, Func<T> function)
|
||||
{
|
||||
Ensure.That(() => key).IsNotNullOrWhiteSpace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue