feat: 实现缓存清楚逻辑
This commit is contained in:
parent
5e136d1815
commit
92e3aa4c35
|
@ -71,9 +71,9 @@ class DefaultCacheManager : ICacheManager
|
|||
{
|
||||
Cache.Remove(key);
|
||||
}
|
||||
else
|
||||
else if (Cache is MemoryCache c)
|
||||
{
|
||||
//Cache.Compact(100);
|
||||
c.Compact(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue