Cloudreve/pkg/cache/driver.go

11 lines
215 B
Go
Raw Normal View History

2019-12-05 17:01:14 +08:00
package cache
// Store 缓存存储器
var Store Driver = NewMemoStore()
// Driver 键值缓存存储容器
type Driver interface {
Set(key string, value interface{}) error
Get(key string) (interface{}, bool)
}