open key-database deterministic
This commit is contained in:
8
server/cache/interface.go
vendored
Normal file
8
server/cache/interface.go
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
package cache
|
||||
|
||||
import "time"
|
||||
|
||||
type SetGetKey interface {
|
||||
Set(key string, value interface{}, ttl time.Duration) error
|
||||
Get(key string) (interface{}, bool)
|
||||
}
|
Reference in New Issue
Block a user