pages-server/server/cache/interface.go

11 lines
260 B
Go
Raw Permalink Normal View History

2021-12-03 03:15:48 +00:00
package cache
import "time"
// ICache is an interface that defines how the pages server interacts with the cache.
type ICache interface {
2021-12-03 03:15:48 +00:00
Set(key string, value interface{}, ttl time.Duration) error
Get(key string) (interface{}, bool)
2021-12-03 03:32:30 +00:00
Remove(key string)
2021-12-03 03:15:48 +00:00
}