mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-27 12:01:44 +01:00
Co-authored-by: Kieran <kieran@harkin.me> Reviewed-on: https://git.v0l.io/Kieran/void.cat/pulls/65
21 lines
518 B
C#
21 lines
518 B
C#
using VoidCat.Database;
|
|
using VoidCat.Services.Abstractions;
|
|
|
|
namespace VoidCat.Services.Users;
|
|
|
|
/// <inheritdoc cref="VoidCat.Services.Abstractions.IApiKeyStore" />
|
|
public class CacheApiKeyStore : BasicCacheStore<ApiKey>, IApiKeyStore
|
|
{
|
|
public CacheApiKeyStore(ICache cache) : base(cache)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public ValueTask<IReadOnlyList<ApiKey>> ListKeys(Guid id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
protected override string MapKey(Guid id) => $"api-key:{id}";
|
|
}
|