pages-server/server/cache/interface.go
2021-12-05 14:48:49 +01:00

8 lines
157 B
Go

package cache
import "time"
type SetGetKey interface {
Set(key string, value interface{}, ttl time.Duration) error
Get(key string) (interface{}, bool)
}