add godoc to cache interface

This commit is contained in:
crapStone 2023-11-17 23:50:40 +01:00
parent 7a58c97817
commit 481a718e4a
No known key found for this signature in database
GPG Key ID: D74B82E7CDD863FE
1 changed files with 1 additions and 0 deletions

View File

@ -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)