pages-server/server/cache/interface.go

9 lines
157 B
Go
Raw Normal View History

2021-12-03 03:15:48 +00:00
package cache
import "time"
type SetGetKey interface {
Set(key string, value interface{}, ttl time.Duration) error
Get(key string) (interface{}, bool)
}