Documentation ¶
Index ¶
- func InitRedis(addr string) (redis.Conn, error)
- func RedisDelV(Redis redis.Conn, key string) bool
- func RedisFlush(Redis redis.Conn) bool
- func RedisGetV(Redis redis.Conn, key string) (string, error)
- func RedisGetVBytes(Redis redis.Conn, key string) ([]byte, error)
- func RedisIsExist(Redis redis.Conn, key string) bool
- func RedisListGetWithRange(Redis redis.Conn, key, range1, range2 string) (interface{}, bool)
- func RedisListPush(Redis redis.Conn, key string, value interface{}) bool
- func RedisSetKeyTime(Redis redis.Conn, key, seconds string) bool
- func RedisSetV(Redis redis.Conn, key string, value interface{}) bool
- func RedisSetVNX(Redis redis.Conn, key string, value interface{}) bool
- func RedisSetVWithTime(Redis redis.Conn, key string, value interface{}, seconds string) bool
- func RedisSetVWithTimeNX(Redis redis.Conn, key string, value interface{}, seconds string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisGetVBytes ¶
RedisGetV 获取value
func RedisListGetWithRange ¶
RedisListGetWithRange 从列表里获取指定范围的数据
func RedisListPush ¶
RedisListPush 往列表里插入数据
func RedisSetKeyTime ¶
RedisSetKeyTime 设置过期时间
func RedisSetVNX ¶
RedisSetVNX 如果不存在则设置value
func RedisSetVWithTime ¶
RedisSetVWithTime 设置value和过期时间
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.