mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
8 lines
157 B
Go
8 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)
|
|
}
|