1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

specify cache size

This commit is contained in:
Kyle Spearrin 2018-05-29 22:36:32 -04:00
parent 1ead0af77e
commit fbdb600f22

View File

@ -66,7 +66,8 @@ namespace Bit.Icons.Controllers
{
_memoryCache.Set(mappedDomain, icon, new MemoryCacheEntryOptions
{
AbsoluteExpirationRelativeToNow = new TimeSpan(_iconsSettings.CacheHours, 0, 0)
AbsoluteExpirationRelativeToNow = new TimeSpan(_iconsSettings.CacheHours, 0, 0),
Size = icon?.Image.Length ?? 0
});
}
}