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:
parent
1ead0af77e
commit
fbdb600f22
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user