增加了cache.Remove

This commit is contained in:
2026-04-26 01:23:14 +08:00
parent a859986a93
commit 162b92a415
+5
View File
@@ -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);