kopia lustrzana https://codeberg.org/Codeberg/pages-server
add godoc to cache interface
rodzic
7a58c97817
commit
481a718e4a
|
@ -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)
|
||||||
|
|
Ładowanie…
Reference in New Issue