支持缓存+队列,支持驱动:redis、memory

This commit is contained in:
linwenxiang committed 2020-08-10 20:57:17 +08:00
1 parent bdde879238
commit 2b794c03cc
8 files changed
+200 -155

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package cache
import (
"github.com/matchstalk/utils/cache"
)
var MemoryAdapter Adapter
func InitMemory() error {
MemoryAdapter = &cache.Memory{
PoolNum: 100,
}
err := MemoryAdapter.Connect()
return err
}