Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // Get get cached value by key Get(key string) (value []byte, ok bool) // GetRange GetRange(key string, low, high int64) (value []byte, ok bool) // Put set cached value with key Set(key string, value []byte) // Put set cached value with key and expire time SetTimeout(key string, value []byte, timeout time.Duration) error // Delete delete cached value by key Delete(key string) // ClearAll clear all cache ClearAll() (err error) Close() error }
Cache interface
Click to show internal directories.
Click to hide internal directories.