Documentation ¶
Index ¶
- func PingRedis(c redis.Conn, t time.Time) error
- type RedisProxy
- func (r RedisProxy) Append(key, value string) (reply interface{}, err error)
- func (r RedisProxy) Clear(key string) (reply interface{}, err error)
- func (r RedisProxy) Close()
- func (r RedisProxy) Decr(key string) (reply interface{}, err error)
- func (r RedisProxy) DecrBy(key string, num int) (reply interface{}, err error)
- func (r RedisProxy) Del(key string) (reply interface{}, err error)
- func (r RedisProxy) Expire(key string, seconds uint)
- func (r RedisProxy) Get(key string) (reply interface{}, err error)
- func (r RedisProxy) GetConn() redis.Conn
- func (r RedisProxy) HDecr(key, field string) (reply interface{}, err error)
- func (r RedisProxy) HDel(key, field string) (reply interface{}, err error)
- func (r RedisProxy) HGet(key, field string) (reply interface{}, err error)
- func (r RedisProxy) HGetAll(key string, clear bool) (reply interface{}, err error)
- func (r RedisProxy) HGetAllValues(key string, clear bool) (reply interface{}, err error)
- func (r RedisProxy) HIncr(key, field string) (reply interface{}, err error)
- func (r RedisProxy) HLen(key string) (reply interface{}, err error)
- func (r RedisProxy) HMSet(key string, m map[string]map[string][][]string) (reply interface{}, err error)
- func (r RedisProxy) HSet(key, field string, value interface{}) (reply interface{}, err error)
- func (r RedisProxy) Incr(key string) (reply interface{}, err error)
- func (r RedisProxy) IncreBy(key string, num int) (reply interface{}, err error)
- func (r RedisProxy) Keys(keyword string) (reply interface{}, err error)
- func (r RedisProxy) LFIRST(key string) (reply interface{}, err error)
- func (r RedisProxy) LGetAll(key string, clear bool) (reply interface{}, err error)
- func (r RedisProxy) LLen(key string) (reply interface{}, err error)
- func (r RedisProxy) LPOP(key string) (reply interface{}, err error)
- func (r RedisProxy) LPOPN(key string, n int) (replies []interface{})
- func (r RedisProxy) LPush(key, value string) (reply interface{}, err error)
- func (r RedisProxy) LREM(key string, value string) (reply interface{}, err error)
- func (r RedisProxy) PubSubConn() redis.PubSubConn
- func (r RedisProxy) Publish(subject string, content interface{}) (reply interface{}, err error)
- func (r RedisProxy) RPOP(key string) (reply interface{}, err error)
- func (r RedisProxy) RPUSH(key string, value string) (reply interface{}, err error)
- func (r RedisProxy) SADD(key, value string) (reply interface{}, err error)
- func (r RedisProxy) SADD_KEYS(keys []string, value string) (reply interface{}, err error)
- func (r RedisProxy) SADD_VALUES(key string, values ...string) (reply interface{}, err error)
- func (r RedisProxy) SCARD(key string) (reply interface{}, err error)
- func (r RedisProxy) SISMEMBER(key, member string) (reply interface{}, err error)
- func (r RedisProxy) SMEMBERS(key string) (reply interface{}, err error)
- func (r RedisProxy) SREM(key, value string) (reply interface{}, err error)
- func (r RedisProxy) SREM_KEYS(keys []string, value string) (reply interface{}, err error)
- func (r RedisProxy) SREM_VALUES(key string, values ...string) (reply interface{}, err error)
- func (r RedisProxy) Set(key string, value interface{}) (reply interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisProxy ¶
func (RedisProxy) Append ¶
func (r RedisProxy) Append(key, value string) (reply interface{}, err error)
func (RedisProxy) Clear ¶
func (r RedisProxy) Clear(key string) (reply interface{}, err error)
func (RedisProxy) Close ¶
func (r RedisProxy) Close()
func (RedisProxy) Decr ¶
func (r RedisProxy) Decr(key string) (reply interface{}, err error)
func (RedisProxy) DecrBy ¶
func (r RedisProxy) DecrBy(key string, num int) (reply interface{}, err error)
func (RedisProxy) Del ¶
func (r RedisProxy) Del(key string) (reply interface{}, err error)
func (RedisProxy) Expire ¶
func (r RedisProxy) Expire(key string, seconds uint)
func (RedisProxy) Get ¶
func (r RedisProxy) Get(key string) (reply interface{}, err error)
func (RedisProxy) GetConn ¶
func (r RedisProxy) GetConn() redis.Conn
func (RedisProxy) HDecr ¶
func (r RedisProxy) HDecr(key, field string) (reply interface{}, err error)
func (RedisProxy) HDel ¶
func (r RedisProxy) HDel(key, field string) (reply interface{}, err error)
func (RedisProxy) HGet ¶
func (r RedisProxy) HGet(key, field string) (reply interface{}, err error)
func (RedisProxy) HGetAll ¶
func (r RedisProxy) HGetAll(key string, clear bool) (reply interface{}, err error)
func (RedisProxy) HGetAllValues ¶
func (r RedisProxy) HGetAllValues(key string, clear bool) (reply interface{}, err error)
clear:取出数据后是否清空hash
func (RedisProxy) HIncr ¶
func (r RedisProxy) HIncr(key, field string) (reply interface{}, err error)
func (RedisProxy) HLen ¶
func (r RedisProxy) HLen(key string) (reply interface{}, err error)
func (RedisProxy) HSet ¶
func (r RedisProxy) HSet(key, field string, value interface{}) (reply interface{}, err error)
func (RedisProxy) Incr ¶
func (r RedisProxy) Incr(key string) (reply interface{}, err error)
func (RedisProxy) IncreBy ¶
func (r RedisProxy) IncreBy(key string, num int) (reply interface{}, err error)
func (RedisProxy) Keys ¶
func (r RedisProxy) Keys(keyword string) (reply interface{}, err error)
func (RedisProxy) LFIRST ¶
func (r RedisProxy) LFIRST(key string) (reply interface{}, err error)
func (RedisProxy) LGetAll ¶
func (r RedisProxy) LGetAll(key string, clear bool) (reply interface{}, err error)
clear:取出数据后是否清空list
func (RedisProxy) LLen ¶
func (r RedisProxy) LLen(key string) (reply interface{}, err error)
func (RedisProxy) LPOP ¶
func (r RedisProxy) LPOP(key string) (reply interface{}, err error)
移除并返回列表 key 的头元素
func (RedisProxy) LPOPN ¶
func (r RedisProxy) LPOPN(key string, n int) (replies []interface{})
移除并返回列表 key 的头元素
func (RedisProxy) LPush ¶
func (r RedisProxy) LPush(key, value string) (reply interface{}, err error)
func (RedisProxy) LREM ¶
func (r RedisProxy) LREM(key string, value string) (reply interface{}, err error)
移除list中所有与value相等的值
func (RedisProxy) PubSubConn ¶
func (r RedisProxy) PubSubConn() redis.PubSubConn
func (RedisProxy) Publish ¶
func (r RedisProxy) Publish(subject string, content interface{}) (reply interface{}, err error)
func (RedisProxy) RPOP ¶
func (r RedisProxy) RPOP(key string) (reply interface{}, err error)
移除并返回列表 key 的尾元素。
func (RedisProxy) RPUSH ¶
func (r RedisProxy) RPUSH(key string, value string) (reply interface{}, err error)
将一个或多个值 value 插入到列表 key 的表尾(最右边)。
func (RedisProxy) SADD ¶
func (r RedisProxy) SADD(key, value string) (reply interface{}, err error)
将一个或多个 member 元素加入到集合 key 当中,已经存在于集合的 member 元素将被忽略。
func (RedisProxy) SADD_KEYS ¶
func (r RedisProxy) SADD_KEYS(keys []string, value string) (reply interface{}, err error)
func (RedisProxy) SADD_VALUES ¶
func (r RedisProxy) SADD_VALUES(key string, values ...string) (reply interface{}, err error)
func (RedisProxy) SCARD ¶
func (r RedisProxy) SCARD(key string) (reply interface{}, err error)
返回集合 key 的基数(集合中元素的数量)。
func (RedisProxy) SISMEMBER ¶
func (r RedisProxy) SISMEMBER(key, member string) (reply interface{}, err error)
判断 member 元素是否集合 key 的成员。
func (RedisProxy) SMEMBERS ¶
func (r RedisProxy) SMEMBERS(key string) (reply interface{}, err error)
返回集合 key 中的所有成员。
func (RedisProxy) SREM ¶
func (r RedisProxy) SREM(key, value string) (reply interface{}, err error)
移除集合 key 中的一个或多个 member 元素,不存在的 member 元素会被忽略。
func (RedisProxy) SREM_KEYS ¶
func (r RedisProxy) SREM_KEYS(keys []string, value string) (reply interface{}, err error)
func (RedisProxy) SREM_VALUES ¶
func (r RedisProxy) SREM_VALUES(key string, values ...string) (reply interface{}, err error)
func (RedisProxy) Set ¶
func (r RedisProxy) Set(key string, value interface{}) (reply interface{}, err error)
Click to show internal directories.
Click to hide internal directories.