支持缓存+队列,支持驱动:redis、memory
This commit is contained in:
1 parent
bdde879238
commit
2b794c03cc
8 files changed
+200
-155
No files matched your search
Vendored
+15
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user