Feat: cache in-memory store
This commit is contained in:
10
pkg/cache/driver.go
vendored
Normal file
10
pkg/cache/driver.go
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package cache
|
||||
|
||||
// Store 缓存存储器
|
||||
var Store Driver = NewMemoStore()
|
||||
|
||||
// Driver 键值缓存存储容器
|
||||
type Driver interface {
|
||||
Set(key string, value interface{}) error
|
||||
Get(key string) (interface{}, bool)
|
||||
}
|
||||
Reference in New Issue
Block a user