调整目录位置和变量名

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

View File

@@ -1,7 +1,6 @@
package aycache
import (
"github.com/ayflying/utility_go/ayCache/drive"
"github.com/gogf/gf/v2/os/gcache"
)
@@ -22,9 +21,9 @@ func New(_name ...string) gcache.Adapter {
}
switch name {
case "cache":
cacheAdapterObj = drive.NewAdapterMemory()
cacheAdapterObj = NewAdapterMemory()
case "redis":
cacheAdapterObj = drive.NewAdapterRedis()
cacheAdapterObj = NewAdapterRedis()
}
//var client = gcache.New()

View File

@@ -1,4 +1,4 @@
package drive
package aycache
import (
"context"

View File

@@ -1,4 +1,4 @@
package drive
package aycache
import (
"github.com/gogf/gf/v2/os/gcache"

View File

@@ -1,4 +1,4 @@
package drive
package aycache
import (
"context"

View File

@@ -1,4 +1,4 @@
package drive
package aycache
import (
"github.com/gogf/gf/v2/frame/g"