Documentation
¶
Index ¶
- 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
- 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
- type Options
- type Script
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HGetObject ¶
HGetObject hash获取值
func HGetString ¶
Hash 操作 HGetString hash获取值
func Receive ¶
func Receive() (reply interface{}, err error)
Receive receives a single reply from the Redis server
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) HGetObject ¶
HGetObject hash获取值
func (*Cache) HGetString ¶
HGetString hash获取值
Click to show internal directories.
Click to hide internal directories.