Documentation ¶
Index ¶
- Constants
- func Decr(RConn *redigo.Conn, key string) (int64, error)
- func DecrBy(RConn *redigo.Conn, key string, decrBy int64) (int64, error)
- func DecrByFloat(RConn *redigo.Conn, key string, decrBy float64) (float64, error)
- func Delete(RConn *redigo.Conn, key string) (interface{}, error)
- func Exists(RConn *redigo.Conn, key string) (bool, error)
- func Expire(RConn *redigo.Conn, key string, ttl int) (interface{}, error)
- func Get(RConn *redigo.Conn, key string) (interface{}, error)
- func GetInt(RConn *redigo.Conn, key string) (int, error)
- func GetInt64(RConn *redigo.Conn, key string) (int64, error)
- func GetString(RConn *redigo.Conn, key string) (string, error)
- func GetStringLength(RConn *redigo.Conn, key string) (int, error)
- func GetTTL(RConn *redigo.Conn, key string) (time.Duration, error)
- func GetUInt64(RConn *redigo.Conn, key string) (uint64, error)
- func HDel(RConn *redigo.Conn, key string, HKey string) (interface{}, error)
- func HGet(RConn *redigo.Conn, key string, HKey string) (interface{}, error)
- func HGetAll(RConn *redigo.Conn, key string) (interface{}, error)
- func HGetAllString(RConn *redigo.Conn, key string) ([]string, error)
- func HGetAllValues(RConn *redigo.Conn, key string) ([]interface{}, error)
- func HGetBool(RConn *redigo.Conn, key string, HKey string) (bool, error)
- func HGetFloat(RConn *redigo.Conn, key string, HKey string) (float64, error)
- func HGetInt(RConn *redigo.Conn, key string, HKey string) (int, error)
- func HGetInt64(RConn *redigo.Conn, key string, HKey string) (int64, error)
- func HGetString(RConn *redigo.Conn, key string, HKey string) (string, error)
- func HKeys(RConn *redigo.Conn, key string) ([]string, error)
- func HMGet(RConn *redigo.Conn, key string, hashKeys ...string) ([]interface{}, error)
- func HMSet(RConn *redigo.Conn, key string, hashKeys []string, vals []interface{}) (interface{}, error)
- func HSet(RConn *redigo.Conn, key string, HKey string, data interface{}) (interface{}, error)
- func Incr(RConn *redigo.Conn, key string) (int64, error)
- func IncrBy(RConn *redigo.Conn, key string, incBy int64) (int64, error)
- func IncrByFloat(RConn *redigo.Conn, key string, incBy float64) (float64, error)
- func Keys(RConn *redigo.Conn, pattern string) ([]string, error)
- func Persist(RConn *redigo.Conn, key string) (interface{}, error)
- func Publish(RConn *redigo.Conn, key string, message interface{}) (int64, error)
- func SAdd(RConn *redigo.Conn, setName string, data interface{}) (interface{}, error)
- func SCard(RConn *redigo.Conn, setName string) (int64, error)
- func SIsMember(RConn *redigo.Conn, setName string, data interface{}) (bool, error)
- func SMembers(RConn *redigo.Conn, setName string) ([]string, error)
- func SRem(RConn *redigo.Conn, setName string, data interface{}) (interface{}, error)
- func Set(RConn *redigo.Conn, key string, data interface{}) (interface{}, error)
- func SetEx(RConn *redigo.Conn, key string, ttl int, data interface{}) (interface{}, error)
- func SetNX(RConn *redigo.Conn, key string, data interface{}) (interface{}, error)
- func ZAdd(RConn *redigo.Conn, key string, score float64, data interface{}) (interface{}, error)
- func ZRange(RConn *redigo.Conn, key string, start int, end int, withScores bool) ([]interface{}, error)
- func ZRem(RConn *redigo.Conn, key string, data interface{}) (interface{}, error)
- type Component
- type PoolConfig
- type RPool
- func (rpool *RPool) Decr(key string) (int64, error)
- func (rpool *RPool) DecrBy(key string, decrBy int64) (int64, error)
- func (rpool *RPool) DecrByFloat(key string, decrBy float64) (float64, error)
- func (rpool *RPool) Delete(key string) (interface{}, error)
- func (rpool *RPool) Destroy() error
- func (rpool *RPool) Do(commandName string, args ...interface{}) (reply interface{}, err error)
- func (rpool *RPool) Exists(key string) (bool, error)
- func (rpool *RPool) Expire(key string, ttl int) (interface{}, error)
- func (rpool *RPool) Get(key string) (interface{}, error)
- func (rpool *RPool) GetBytes(key string) ([]byte, error)
- func (rpool *RPool) GetConn() redigo.Conn
- func (rpool *RPool) GetInt(key string) (int, error)
- func (rpool *RPool) GetInt64(key string) (int64, error)
- func (rpool *RPool) GetString(key string) (string, error)
- func (rpool *RPool) GetTTL(key string) (time.Duration, error)
- func (rpool *RPool) GetUint64(key string) (uint64, error)
- func (rpool *RPool) HDel(key string, HKey string) (interface{}, error)
- func (rpool *RPool) HGet(key string, HKey string) (interface{}, error)
- func (rpool *RPool) HGetAll(key string) (interface{}, error)
- func (rpool *RPool) HGetAllString(key string) ([]string, error)
- func (rpool *RPool) HGetAllValues(key string) ([]interface{}, error)
- func (rpool *RPool) HGetBool(key string, HKey string) (bool, error)
- func (rpool *RPool) HGetFloat(key string, HKey string) (float64, error)
- func (rpool *RPool) HGetInt(key string, HKey string) (int, error)
- func (rpool *RPool) HGetInt64(key string, HKey string) (int64, error)
- func (rpool *RPool) HGetString(key string, HKey string) (string, error)
- func (rpool *RPool) HGetUint64(key string, HKey string) (uint64, error)
- func (rpool *RPool) HKeys(key string) ([]string, error)
- func (rpool *RPool) HMGet(key string, hashKeys ...string) ([]interface{}, error)
- func (rpool *RPool) HMSet(key string, hashKeys []string, vals []interface{}) (interface{}, error)
- func (rpool *RPool) HSet(key string, HKey string, data interface{}) (interface{}, error)
- func (rpool *RPool) Incr(key string) (int64, error)
- func (rpool *RPool) IncrBy(key string, incBy int64) (int64, error)
- func (rpool *RPool) IncrByFloat(key string, incBy float64) (float64, error)
- func (rpool *RPool) Keys(pattern string) ([]string, error)
- func (rpool *RPool) KeysByteSlices(pattern string) ([][]byte, error)
- func (rpool *RPool) ParseConfig(configor *pbconfig.Configor) PoolConfig
- func (rpool *RPool) Publish(key string, message interface{}) (int64, error)
- func (rpool *RPool) Set(key string, data interface{}) (interface{}, error)
- func (rpool *RPool) UpdatePool(config PoolConfig) (*RPool, error)
Constants ¶
View Source
const ( REDIS_CMD_SADD = "SADD" REDIS_CMD_SCARD = "SCARD" REDIS_CMD_SISMEMBER = "SISMEMBER" REDIS_CMD_SMEMBERS = "SMEMBERS" REDIS_CMD_SREM = "SREM" REDIS_CMD_HSET = "HSET" REDIS_CMD_HGET = "HGET" REDIS_CMD_HMSET = "HMSET" REDIS_CMD_HMGET = "HMGET" REDIS_CMD_HDEL = "HDEL" REDIS_CMD_HGETALL = "HGETALL" REDIS_CMD_SET = "SET" REDIS_CMD_SETNX = "SETNX" REDIS_CMD_SETEX = "SETEX" REDIS_CMD_GET = "GET" REDIS_CMD_TTL = "TTL" REDIS_CMD_STRLEN = "STRLEN" REDIS_CMD_EXPIRE = "EXPIRE" REDIS_CMD_DELETE = "DEL" REDIS_CMD_KEYS = "KEYS" REDIS_CMD_HKEYS = "HKEYS" REDIS_CMD_EXISTS = "EXISTS" REDIS_CMD_PERSIST = "PERSIST" REDIS_CMD_ZADD = "ZADD" REDIS_CMD_ZREM = "ZREM" REDIS_CMD_ZRANGE = "ZRANGE" REDIS_CMD_ZRANGE_BY_SCORE = "ZRANGEBYSCORE" REDIS_CMD_WITHSCORES = "WITHSCORES" REDIS_CMD_INCR = "INCR" REDIS_CMD_DECR = "DECR" REDIS_CMD_INCRBY = "INCRBY" REDIS_CMD_DECRBY = "DECRBY" REDIS_CMD_INCRBYFLOAT = "INCRBYFLOAT" REDIS_CMD_DECRBYFLOAT = "DECRBYFLOAT" REDIS_CMD_PUBLISH = "PUBLISH" )
Variables ¶
This section is empty.
Functions ¶
func DecrByFloat ¶
Types ¶
type Component ¶
type Component struct {
component.DefaultComponent
}
type PoolConfig ¶
type RPool ¶
type RPool struct {
// contains filtered or unexported fields
}
func (*RPool) DecrByFloat ¶
func (*RPool) HGetAllValues ¶
func (*RPool) IncrByFloat ¶
func (*RPool) ParseConfig ¶
func (rpool *RPool) ParseConfig(configor *pbconfig.Configor) PoolConfig
func (*RPool) UpdatePool ¶
func (rpool *RPool) UpdatePool(config PoolConfig) (*RPool, error)
Click to show internal directories.
Click to hide internal directories.