mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Tuned down DB logging
Added cache to scene mapping.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user