From 162b92a415367dc58fffa28ca25f849b23339f4c Mon Sep 17 00:00:00 2001 From: xRain Date: Sun, 26 Apr 2026 01:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86cache.Remove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helpers/SimApiCache.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Helpers/SimApiCache.cs b/Helpers/SimApiCache.cs index 7291a52..01aa508 100644 --- a/Helpers/SimApiCache.cs +++ b/Helpers/SimApiCache.cs @@ -19,6 +19,11 @@ public class SimApiCache(IDistributedCache cache) } } + public void Remove(string key) + { + cache.Remove(Prefix + key); + } + public string? Get(string key) { return cache.GetString(Prefix + key);