mirror of
https://github.com/bitwarden/server.git
synced 2025-02-18 02:11:22 +01:00
specify cache size
This commit is contained in:
parent
1ead0af77e
commit
fbdb600f22
@ -66,7 +66,8 @@ namespace Bit.Icons.Controllers
|
|||||||
{
|
{
|
||||||
_memoryCache.Set(mappedDomain, icon, new MemoryCacheEntryOptions
|
_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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user