Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ICache ¶
type ICache interface { // Get a cached value by key. Get(key string, val interface{}) error // GetMulti is a batch version of Get. GetMulti(keys []string, val []interface{}) error // Set a cached value with key and expire time. Put(key string, val interface{}, timeout time.Duration) error // Delete cached value by key. Delete(key string) error // Increment a cached int value by key, as a counter. Incr(key string) error // Decrement a cached int value by key, as a counter. Decr(key string) error // Check if a cached value exists or not. IsExist(key string) (bool, error) // Clear all cache. ClearAll() error // Start gc routine based on config string settings. StartAndGC(config string) error }
Click to show internal directories.
Click to hide internal directories.