Cloudreve/pkg/cache/driver.go
2019-12-05 17:01:14 +08:00

10 lines
215 B
Go

package cache
// Store 缓存存储器
var Store Driver = NewMemoStore()
// Driver 键值缓存存储容器
type Driver interface {
Set(key string, value interface{}) error
Get(key string) (interface{}, bool)
}