using VoidCat.Database; using VoidCat.Services.Abstractions; namespace VoidCat.Services.Payment; /// public class CachePaymentOrderStore : BasicCacheStore, IPaymentOrderStore { public CachePaymentOrderStore(ICache cache) : base(cache) { } /// public async ValueTask UpdateStatus(Guid order, PaywallOrderStatus status) { var old = await Get(order); if (old == default) return; old.Status = status; await Add(order, old); } /// protected override string MapKey(Guid id) => $"payment:order:{id}"; }