mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
10 lines
260 B
Go
10 lines
260 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 interface{}, ttl time.Duration) error
|
|
Get(key string) (interface{}, bool)
|
|
Remove(key string)
|
|
}
|