更新库pkg

This commit is contained in:
ayflying
2025-03-14 14:26:07 +08:00
parent 4963780a32
commit 5fbe4d5dcf
18 changed files with 443 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
package drive
import (
"github.com/gogf/gf/v2/os/gcache"
)
var adapterMemoryClient = gcache.New()
// NewAdapterMemory 创建并返回一个新的内存缓存对象。
func NewAdapterMemory() gcache.Adapter {
//if adapterMemoryClient == nil {
// adapterMemoryClient = gcache.New()
//}
return adapterMemoryClient
}