Files
Anatolii Grynchuk 85b362e8cd chore: add hrynco common library solution
- add the standalone HrynCo.Common solution and projects
- include the shared common library source and tests
- add package metadata and a repo gitignore
2026-05-01 00:17:34 +03:00

20 lines
521 B
C#

namespace HrynCo.Common.Caching;
using System;
using System.Threading;
using System.Threading.Tasks;
public interface ISessionCredentialStore
{
Task<string?> GetAsync(Guid userId, string provider, CancellationToken cancellationToken = default);
Task RemoveAsync(Guid userId, string provider, CancellationToken cancellationToken = default);
Task SaveAsync(
Guid userId,
string provider,
string apiKey,
TimeSpan ttl,
CancellationToken cancellationToken = default);
}