Tuned down DB logging

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

View file

@ -75,6 +75,24 @@ namespace NzbDrone.Common.Test.CacheTests
_cachedString.Get("Key").Should().Be("New");
}
[Test]
public void should_store_null()
{
int hitCount = 0;
for (int i = 0; i < 10; i++)
{
_cachedString.Get("key", () =>
{
hitCount++;
return null;
});
}
hitCount.Should().Be(1);
}
}
public class Worker