make mem cache an interface and inject
This commit is contained in:
1
server/cache/interface.go
vendored
1
server/cache/interface.go
vendored
@ -5,4 +5,5 @@ import "time"
|
||||
type SetGetKey interface {
|
||||
Set(key string, value interface{}, ttl time.Duration) error
|
||||
Get(key string) (interface{}, bool)
|
||||
Remove(key string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user