All checks were successful
DCO / DCO (pull_request) Successful in 33s
Signed-off-by: Pavel Gross <p.gross@yando.com>
23 lines
640 B
C#
23 lines
640 B
C#
using Microsoft.Extensions.Caching.Memory;
|
|
|
|
namespace FrostFS.SDK.ClientV2
|
|
{
|
|
internal static class Cache
|
|
{
|
|
private static readonly IMemoryCache _ownersCache = new MemoryCache(new MemoryCacheOptions
|
|
{
|
|
// TODO: get from options?
|
|
SizeLimit = 256
|
|
});
|
|
|
|
private static readonly IMemoryCache _containersCache = new MemoryCache(new MemoryCacheOptions
|
|
{
|
|
// TODO: get from options?
|
|
SizeLimit = 1024
|
|
});
|
|
|
|
internal static IMemoryCache Owners => _ownersCache;
|
|
|
|
internal static IMemoryCache Containers => _containersCache;
|
|
}
|
|
}
|