调整目录位置和变量名

This commit is contained in:
ayflying
2024-12-23 16:15:27 +08:00
parent 3190e4328e
commit a90e22c242
7 changed files with 11 additions and 63 deletions

15
aycache/memory.go Normal file
View File

@@ -0,0 +1,15 @@
package aycache
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
}