This commit is contained in:
tfl
2024-08-21 17:35:50 +08:00
parent 34ea7472b7
commit dd5b38b4e3
24 changed files with 328 additions and 133 deletions

View File

@@ -11,6 +11,10 @@ func ComputeIfAbsentProductRule(key string, fun func(any) (any, error)) (any, er
return ProductCache.ComputeIfAbsent(key, fun)
}
func GetProductRule(key string) (any, bool) {
return ProductCache.Get(key)
}
func DelProductRule(key string) {
ProductCache.Delete(key)
}