Tuned down DB logging

Added cache to scene mapping.
This commit is contained in:
kay.one 2013-05-29 21:55:23 -07:00
parent 2a12b051bc
commit acf54203e5
8 changed files with 68 additions and 31 deletions

View file

@ -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();