Skip to content

Commit 162b92a

Browse files
committed
增加了cache.Remove
1 parent a859986 commit 162b92a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Helpers/SimApiCache.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public void Set(string key, object value, DistributedCacheEntryOptions? options
1919
}
2020
}
2121

22+
public void Remove(string key)
23+
{
24+
cache.Remove(Prefix + key);
25+
}
26+
2227
public string? Get(string key)
2328
{
2429
return cache.GetString(Prefix + key);

0 commit comments

Comments
 (0)