Finish stike paywall

This commit is contained in:
Kieran
2022-02-21 12:54:57 +00:00
parent 0eda25ba00
commit edf26c2137
24 changed files with 536 additions and 182 deletions

View File

@@ -31,7 +31,8 @@ public class InMemoryPaywallStore : IPaywallStore
public ValueTask SaveOrder(PaywallOrder order)
{
_cache.Set(order.Id, order);
_cache.Set(order.Id, order,
order.Status == PaywallOrderStatus.Paid ? TimeSpan.FromDays(1) : TimeSpan.FromSeconds(5));
return ValueTask.CompletedTask;
}
}
}