pages-server/server/cache/interface.go

11 lines
260 B
Go
Raw Normal View History

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