1
0
Fork 0
mirror of https://codeberg.org/Codeberg/pages-server.git synced 2025-08-13 19:10:54 +00:00
pages-server/server/cache/interface.go

10 lines
250 B
Go

package cache
import "time"
// ICache is an interface that defines how the pages server interacts with the cache.
type ICache interface {
Set(key string, value string, ttl time.Duration) error
Get(key string) (string, bool)
Remove(key string)
}