Versions in this module Expand all Collapse all v1 v1.0.1 May 30, 2022 v1.0.0 May 31, 2022 Changes in this version + func Decr(key string, expire int) (int64, error) + func Delete(key string) error + func Do(commandName string, args ...interface{}) (reply interface{}, err error) + func Exists(key string) (bool, error) + func Flush() error + func GetObject(key string, v interface{}) error + func GetString(key string) (string, error) + func HDel(hashID string, keys ...interface{}) (int, error) + func HExists(hashID string, key string) (bool, error) + func HGetAll(hashID string) ([]interface{}, error) + func HGetObject(hashID string, key string, v interface{}) error + func HGetString(hashID string, key string) (string, error) + func HKeys(hashID string) ([]string, error) + func HLen(hashID string) (int64, error) + func HMGet(hashID string, keys ...interface{}) ([]interface{}, error) + func HMSet(hashID string, keyVals []interface{}, expire int) error + func HSet(hashID string, key string, val interface{}, expire int) error + func HVals(hashID string) ([]interface{}, error) + func Incr(key string, expire int) (int64, error) + func Init(options Options) error + func Keys(pattern string) ([]interface{}, error) + func Receive() (reply interface{}, err error) + func Send(commandName string, args ...interface{}) error + func SetObject(key string, v interface{}, expire int) error + func SetString(key string, strVal string, expire int) error + func TTL(key string) (int64, error) + type Cache struct + func GetStdCache() *Cache + func New(options Options) *Cache + func (cache *Cache) Decr(key string, expire int) (int64, error) + func (cache *Cache) Delete(key string) error + func (cache *Cache) Do(commandName string, args ...interface{}) (reply interface{}, err error) + func (cache *Cache) Exists(key string) (bool, error) + func (cache *Cache) Flush() error + func (cache *Cache) GetObject(key string, v interface{}) error + func (cache *Cache) GetString(key string) (string, error) + func (cache *Cache) HDel(hashID string, keys ...interface{}) (int, error) + func (cache *Cache) HExists(hashID string, key string) (bool, error) + func (cache *Cache) HGetAll(hashID string) ([]interface{}, error) + func (cache *Cache) HGetObject(hashID string, key string, v interface{}) error + func (cache *Cache) HGetString(hashID string, key string) (string, error) + func (cache *Cache) HKeys(hashID string) ([]string, error) + func (cache *Cache) HLen(hashID string) (int64, error) + func (cache *Cache) HMGet(hashID string, keys []interface{}) ([]interface{}, error) + func (cache *Cache) HMSet(hashID string, keyVals []interface{}, expire int) error + func (cache *Cache) HSet(hashID string, key string, val interface{}, expire int) error + func (cache *Cache) HVals(hashID string) ([]interface{}, error) + func (cache *Cache) Incr(key string, expire int) (int64, error) + func (cache *Cache) Keys(pattern string) ([]interface{}, error) + func (cache *Cache) Receive() (reply interface{}, err error) + func (cache *Cache) Send(commandName string, args ...interface{}) error + func (cache *Cache) SetObject(key string, v interface{}, expire int) error + func (cache *Cache) SetString(key string, strVal string, expire int) error + func (cache *Cache) TTL(key string) (int64, error) + type Checker struct + func (c *Checker) Check() (bool, map[string]string, string) + func (c *Checker) Enabled() bool + func (c *Checker) GetName() string + type Options struct + Address string + ConnectTimeout time.Duration + Db int + IdleTimeout time.Duration + MaxActive int + MaxIdle int + Password string + ReadTimeout time.Duration + WriteTimeout time.Duration + func (options *Options) Assign() + type Script struct + func NewScript(keyCount int, src string) *Script + func (script *Script) Do(cache *Cache, keysAndArgs ...interface{}) (interface{}, error)