mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
specify cache size
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user