Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = errors.New("cache: key not found")
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Ping() error
Get(Key string, dest interface{}) error
Set(Key string, value interface{}, ttl time.Duration) error
Delete(key string) error
}
/ Cache is an interface for cache / destination must be a pointer
type CacheLifeTime ¶
const (
CacheLifeTimeNeverExpired CacheLifeTime = 0
)
Click to show internal directories.
Click to hide internal directories.