mirror of
https://codeberg.org/Codeberg/pages-server
synced 2025-03-16 23:22:26 +00:00
9 lines
157 B
Go
9 lines
157 B
Go
|
package cache
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type SetGetKey interface {
|
||
|
Set(key string, value interface{}, ttl time.Duration) error
|
||
|
Get(key string) (interface{}, bool)
|
||
|
}
|