[#24] Client: Implement pool part2
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
c9a75ea025
commit
ee20798379
63 changed files with 801 additions and 526 deletions
|
@ -3,18 +3,13 @@ using System.Collections;
|
|||
|
||||
namespace FrostFS.SDK.ClientV2;
|
||||
|
||||
internal struct SessionCache
|
||||
internal struct SessionCache(ulong sessionExpirationDuration)
|
||||
{
|
||||
public SessionCache(ulong sessionExpirationDuration)
|
||||
{
|
||||
TokenDuration = sessionExpirationDuration;
|
||||
}
|
||||
|
||||
internal Hashtable Cache { get; } = [];
|
||||
|
||||
internal ulong CurrentEpoch { get; set; }
|
||||
|
||||
internal ulong TokenDuration { get; set; }
|
||||
internal ulong TokenDuration { get; set; } = sessionExpirationDuration;
|
||||
|
||||
internal void DeleteByPrefix(string prefix)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue