handle cancellation

This commit is contained in:
Kukks
2023-04-06 14:11:07 +02:00
parent 5ffd21d45a
commit 2a0165b5eb
3 changed files with 11 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ public class LnurlDescriptionFilter : PluginHookFilter<string>
return arg;
}
var entry = _memoryCache.CreateEntry(Nip05Plugin.GetZapRequestCacheKey(invoiceId.ToString()));
using var entry = _memoryCache.CreateEntry(Nip05Plugin.GetZapRequestCacheKey(invoiceId.ToString()));
entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(5);
entry.SetAbsoluteExpiration(TimeSpan.FromMinutes(5));
entry.SetValue(nostr);