using VoidCat.Database;
using VoidCat.Services.Abstractions;
namespace VoidCat.Services.Payment;
///
public class CachePaymentStore : BasicCacheStore, IPaymentStore
{
public CachePaymentStore(ICache database)
: base(database)
{
}
///
public override async ValueTask Get(Guid id)
{
var cfg = await Cache.Get(MapKey(id));
return cfg;
}
///
protected override string MapKey(Guid id) => $"payment:config:{id}";
}