mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue