add godoc to cache interface

pull/263/head
crapStone 2023-11-17 23:50:40 +01:00
rodzic 7a58c97817
commit 481a718e4a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D74B82E7CDD863FE
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -2,6 +2,7 @@ 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)