mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
add godoc to cache interface
This commit is contained in:
parent
7a58c97817
commit
481a718e4a
1 changed files with 1 additions and 0 deletions
1
server/cache/interface.go
vendored
1
server/cache/interface.go
vendored
|
@ -2,6 +2,7 @@ package cache
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
|
// ICache is an interface that defines how the pages server interacts with the cache.
|
||||||
type ICache interface {
|
type ICache interface {
|
||||||
Set(key string, value interface{}, ttl time.Duration) error
|
Set(key string, value interface{}, ttl time.Duration) error
|
||||||
Get(key string) (interface{}, bool)
|
Get(key string) (interface{}, bool)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue