Documentation ¶
Index ¶
- Constants
- Variables
- func Del(key string)
- func Get(key string) string
- func Hdel(key string, field string)
- func Hget(key string, field string) string
- func Hgetall(key string) string
- func Hkeys(key string) string
- func Hset(key string, field string, value string, extra ...string)
- func Hvals(key string) string
- func Llen(key string) string
- func Lpop(key string) (member string)
- func Lpush(key string, value string, extra ...string)
- func Lrange(key string, start string, stop string) string
- func Rpop(key string) (member string)
- func Rpush(key string, value string, extra ...string)
- func Sadd(key string, member string, extra ...string)
- func Set(key string, value string, extra ...string)
- func Smembers(key string) (members string)
- func Spop(key string) (member string)
- func Srem(key string, member string)
- func Zadd(key string, score string, member string, extra ...string)
- func Zrangebyscore(key string, min string, max string) string
- func Zrem(key string, member string)
- func Zscore(key string, member string) string
- type RedisCmd
Constants ¶
View Source
const (
EXTRA_EXPIRE int = 0
)
Variables ¶
View Source
var ( CmdSet []RedisCmd CmdAvailable map[RedisCmd]bool )
Functions ¶
func Zrangebyscore ¶
Zrangebyscore 通过分数返回有序集合指定区间内的成员
Types ¶
type RedisCmd ¶
type RedisCmd string
const ( SET RedisCmd = "set" GET RedisCmd = "get" DEL RedisCmd = "del" HSET RedisCmd = "hset" HGET RedisCmd = "hget" HGETALL RedisCmd = "hgetall" HKEYS RedisCmd = "hkeys" HVALS RedisCmd = "hvals" HDEL RedisCmd = "hdel" LPUSH RedisCmd = "lpush" LPOP RedisCmd = "lpop" RPUSH RedisCmd = "rpush" RPOP RedisCmd = "rpop" LRANGE RedisCmd = "lrange" LLEN RedisCmd = "llen" SADD RedisCmd = "sadd" SMEMBERS RedisCmd = "smembers" SPOP RedisCmd = "spop" SREM RedisCmd = "srem" ZADD RedisCmd = "zadd" ZRANGEBYSCORE RedisCmd = "zrangebyscore" ZSCORE RedisCmd = "zscore" ZREM RedisCmd = "zrem" )
Click to show internal directories.
Click to hide internal directories.