Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(c Cache)
Types ¶
type Cache ¶
type Cache interface {
// Put puts value into cache with key and expire time.
Put(key string, val any, timeout int64) error
// Get gets cached value by given key.
Get(key string) any
// IsExist checks if key exists
IsExist(key string) bool
Delete(key string) error
}
Cache represents a caching interface
Click to show internal directories.
Click to hide internal directories.