Documentation ¶
Overview ¶
Copyright (c) 2017 devfeel pzrr@qq.com refer from dotweb
Index ¶
- type RedisClient
- func (rc *RedisClient) Append(key string, val interface{}) (interface{}, error)
- func (rc *RedisClient) BLPop(key ...interface{}) (map[string]string, error)
- func (rc *RedisClient) BRPop(key ...interface{}) (map[string]string, error)
- func (rc *RedisClient) BRPopLPush(source string, destination string) (string, error)
- func (rc *RedisClient) DBSize() (int64, error)
- func (rc *RedisClient) DECR(key string) (int, error)
- func (rc *RedisClient) Del(key string) (int64, error)
- func (rc *RedisClient) Exists(key string) (bool, error)
- func (rc *RedisClient) Expire(key string, timeOutSeconds int64) (int64, error)
- func (rc *RedisClient) FlushDB()
- func (rc *RedisClient) Get(key string) (string, error)
- func (rc *RedisClient) GetConn() redis.Conn
- func (rc *RedisClient) GetObj(key string) (interface{}, error)
- func (rc *RedisClient) HDel(args ...interface{}) (int64, error)
- func (rc *RedisClient) HExist(hashID string, field string) (int, error)
- func (rc *RedisClient) HGet(hashID string, field string) (string, error)
- func (rc *RedisClient) HGetAll(hashID string) (map[string]string, error)
- func (rc *RedisClient) HIncrBy(hashID string, field string, increment int) (int, error)
- func (rc *RedisClient) HLen(hashID string) (int64, error)
- func (rc *RedisClient) HSet(hashID string, field string, val string) error
- func (rc *RedisClient) HSetNX(hashID, field, value string) (interface{}, error)
- func (rc *RedisClient) HVals(hashID string) (interface{}, error)
- func (rc *RedisClient) INCR(key string) (int, error)
- func (rc *RedisClient) LIndex(key string, index int) (string, error)
- func (rc *RedisClient) LInsertAfter(key string, pivot string, value string) (int, error)
- func (rc *RedisClient) LInsertBefore(key string, pivot string, value string) (int, error)
- func (rc *RedisClient) LLen(key string) (int, error)
- func (rc *RedisClient) LPop(key string) (string, error)
- func (rc *RedisClient) LPush(key string, value ...interface{}) (int, error)
- func (rc *RedisClient) LPushX(key string, value string) (int, error)
- func (rc *RedisClient) LRange(key string, start int, stop int) ([]string, error)
- func (rc *RedisClient) LRem(key string, count int, value string) (int, error)
- func (rc *RedisClient) LSet(key string, index int, value string) (string, error)
- func (rc *RedisClient) LTrim(key string, start int, stop int) (string, error)
- func (rc *RedisClient) RPop(key string) (string, error)
- func (rc *RedisClient) RPopLPush(source string, destination string) (string, error)
- func (rc *RedisClient) RPush(key string, value ...interface{}) (int, error)
- func (rc *RedisClient) RPushX(key string, value ...interface{}) (int, error)
- func (rc *RedisClient) SAdd(key string, member ...interface{}) (int, error)
- func (rc *RedisClient) SCard(key string) (int, error)
- func (rc *RedisClient) SDiff(key ...interface{}) ([]string, error)
- func (rc *RedisClient) SDiffStore(destination string, key ...interface{}) (int, error)
- func (rc *RedisClient) SInter(key ...interface{}) ([]string, error)
- func (rc *RedisClient) SInterStore(destination string, key ...interface{}) (int, error)
- func (rc *RedisClient) SIsMember(key string, member string) (bool, error)
- func (rc *RedisClient) SMembers(key string) ([]string, error)
- func (rc *RedisClient) SMove(source string, destination string, member string) (bool, error)
- func (rc *RedisClient) SPop(key string) (string, error)
- func (rc *RedisClient) SRandMember(key string, count int) ([]string, error)
- func (rc *RedisClient) SRem(key string, member ...interface{}) (int, error)
- func (rc *RedisClient) SUnion(key ...interface{}) ([]string, error)
- func (rc *RedisClient) SUnionStore(destination string, key ...interface{}) (int, error)
- func (rc *RedisClient) Set(key string, val interface{}) (interface{}, error)
- func (rc *RedisClient) SetNX(key, value string) (interface{}, error)
- func (rc *RedisClient) SetWithExpire(key string, val interface{}, timeOutSeconds int64) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct { Address string // contains filtered or unexported fields }
func GetRedisClient ¶
func GetRedisClient(address string) *RedisClient
func (*RedisClient) Append ¶
func (rc *RedisClient) Append(key string, val interface{}) (interface{}, error)
func (*RedisClient) BLPop ¶
func (rc *RedisClient) BLPop(key ...interface{}) (map[string]string, error)
func (*RedisClient) BRPop ¶
func (rc *RedisClient) BRPop(key ...interface{}) (map[string]string, error)
func (*RedisClient) BRPopLPush ¶
func (rc *RedisClient) BRPopLPush(source string, destination string) (string, error)
func (*RedisClient) DBSize ¶
func (rc *RedisClient) DBSize() (int64, error)
func (*RedisClient) Expire ¶
func (rc *RedisClient) Expire(key string, timeOutSeconds int64) (int64, error)
func (*RedisClient) FlushDB ¶
func (rc *RedisClient) FlushDB()
func (*RedisClient) GetConn ¶
func (rc *RedisClient) GetConn() redis.Conn
func (*RedisClient) GetObj ¶
func (rc *RedisClient) GetObj(key string) (interface{}, error)
func (*RedisClient) HDel ¶
func (rc *RedisClient) HDel(args ...interface{}) (int64, error)
func (*RedisClient) HExist ¶
func (rc *RedisClient) HExist(hashID string, field string) (int, error)
func (*RedisClient) HGetAll ¶
func (rc *RedisClient) HGetAll(hashID string) (map[string]string, error)
func (*RedisClient) HSet ¶
func (rc *RedisClient) HSet(hashID string, field string, val string) error
func (*RedisClient) HSetNX ¶
func (rc *RedisClient) HSetNX(hashID, field, value string) (interface{}, error)
func (*RedisClient) HVals ¶
func (rc *RedisClient) HVals(hashID string) (interface{}, error)
func (*RedisClient) LInsertAfter ¶
func (*RedisClient) LInsertBefore ¶
func (*RedisClient) LPush ¶
func (rc *RedisClient) LPush(key string, value ...interface{}) (int, error)
func (*RedisClient) RPopLPush ¶
func (rc *RedisClient) RPopLPush(source string, destination string) (string, error)
func (*RedisClient) RPush ¶
func (rc *RedisClient) RPush(key string, value ...interface{}) (int, error)
func (*RedisClient) RPushX ¶
func (rc *RedisClient) RPushX(key string, value ...interface{}) (int, error)
func (*RedisClient) SAdd ¶
func (rc *RedisClient) SAdd(key string, member ...interface{}) (int, error)
func (*RedisClient) SDiff ¶
func (rc *RedisClient) SDiff(key ...interface{}) ([]string, error)
func (*RedisClient) SDiffStore ¶
func (rc *RedisClient) SDiffStore(destination string, key ...interface{}) (int, error)
func (*RedisClient) SInter ¶
func (rc *RedisClient) SInter(key ...interface{}) ([]string, error)
func (*RedisClient) SInterStore ¶
func (rc *RedisClient) SInterStore(destination string, key ...interface{}) (int, error)
func (*RedisClient) SIsMember ¶
func (rc *RedisClient) SIsMember(key string, member string) (bool, error)
func (*RedisClient) SRandMember ¶
func (rc *RedisClient) SRandMember(key string, count int) ([]string, error)
func (*RedisClient) SRem ¶
func (rc *RedisClient) SRem(key string, member ...interface{}) (int, error)
func (*RedisClient) SUnion ¶
func (rc *RedisClient) SUnion(key ...interface{}) ([]string, error)
func (*RedisClient) SUnionStore ¶
func (rc *RedisClient) SUnionStore(destination string, key ...interface{}) (int, error)
func (*RedisClient) Set ¶
func (rc *RedisClient) Set(key string, val interface{}) (interface{}, error)
func (*RedisClient) SetNX ¶
func (rc *RedisClient) SetNX(key, value string) (interface{}, error)
func (*RedisClient) SetWithExpire ¶
func (rc *RedisClient) SetWithExpire(key string, val interface{}, timeOutSeconds int64) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.