This commit is contained in:
xh
2025-06-24 11:51:03 +08:00
parent 58f387aef3
commit c0c45a72a6
12 changed files with 53 additions and 61 deletions

View File

@@ -35,6 +35,8 @@ func (c CacheUtil) GetCache(key interface{}, obj interface{}) error {
switch k := key.(type) {
case int:
cacheKey = strconv.Itoa(k)
case int64:
cacheKey = strconv.FormatInt(k, 10)
case string:
cacheKey = k
default: