Documentation ¶
Index ¶
- func Get(key string) (string, error)
- func SAdd(key string, members []interface{}) (int, error)
- func SCard(key string) (int, error)
- func SInter(keys []interface{}) ([]string, error)
- func SIsMember(key, member string) (int, error)
- func SMembers(key string) ([]string, error)
- func SRem(key string, members []interface{}) (int, error)
- func Set(key, value string) (string, error)
- func SetEx(key, value string, seconds int) (string, error)
- type BwRedisClient
- func (r *BwRedisClient) ActiveCount() int
- func (r *BwRedisClient) Bool(cmd string, args ...interface{}) (bool, error)
- func (r *BwRedisClient) ByteSlices(cmd string, args ...interface{}) ([][]byte, error)
- func (r *BwRedisClient) Bytes(cmd string, args ...interface{}) ([]byte, error)
- func (r *BwRedisClient) Float64(cmd string, args ...interface{}) (float64, error)
- func (r *BwRedisClient) Float64s(cmd string, args ...interface{}) ([]float64, error)
- func (r *BwRedisClient) IdleCount() int
- func (r *BwRedisClient) Int(cmd string, args ...interface{}) (int, error)
- func (r *BwRedisClient) Int64(cmd string, args ...interface{}) (int64, error)
- func (r *BwRedisClient) Int64Map(cmd string, args ...interface{}) (map[string]int64, error)
- func (r *BwRedisClient) Int64s(cmd string, args ...interface{}) ([]int64, error)
- func (r *BwRedisClient) IntMap(cmd string, args ...interface{}) (map[string]int, error)
- func (r *BwRedisClient) Ints(cmd string, args ...interface{}) ([]int, error)
- func (r *BwRedisClient) Positions(cmd string, args ...interface{}) ([]*[2]float64, error)
- func (r *BwRedisClient) Status() *NvRedisStatus
- func (r *BwRedisClient) String(cmd string, args ...interface{}) (string, error)
- func (r *BwRedisClient) StringMap(cmd string, args ...interface{}) (map[string]string, error)
- func (r *BwRedisClient) Strings(cmd string, args ...interface{}) ([]string, error)
- func (r *BwRedisClient) Uint64(cmd string, args ...interface{}) (uint64, error)
- func (r *BwRedisClient) Values(cmd string, args ...interface{}) ([]interface{}, error)
- type Config
- type DistributeLock
- type DistributeLockOpt
- type NvRedisShortClient
- func (r *NvRedisShortClient) CloseConn() error
- func (r *NvRedisShortClient) ReplyBool(cmd string, args ...interface{}) (bool, error)
- func (r *NvRedisShortClient) ReplyBytes(cmd string, args ...interface{}) ([]byte, error)
- func (r *NvRedisShortClient) ReplyFloat64(cmd string, args ...interface{}) (float64, error)
- func (r *NvRedisShortClient) ReplyInt(cmd string, args ...interface{}) (int, error)
- func (r *NvRedisShortClient) ReplyInt64(cmd string, args ...interface{}) (int64, error)
- func (r *NvRedisShortClient) ReplyString(cmd string, args ...interface{}) (string, error)
- func (r *NvRedisShortClient) ReplyUint64(cmd string, args ...interface{}) (uint64, error)
- type NvRedisStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BwRedisClient ¶
func NewRedis ¶
func NewRedis(config *Config) (*BwRedisClient, error)
func (*BwRedisClient) ActiveCount ¶
func (r *BwRedisClient) ActiveCount() int
func (*BwRedisClient) Bool ¶
func (r *BwRedisClient) Bool(cmd string, args ...interface{}) (bool, error)
返回 bool
func (*BwRedisClient) ByteSlices ¶
func (r *BwRedisClient) ByteSlices(cmd string, args ...interface{}) ([][]byte, error)
返回 [][]byte
func (*BwRedisClient) Bytes ¶
func (r *BwRedisClient) Bytes(cmd string, args ...interface{}) ([]byte, error)
返回 bytes
func (*BwRedisClient) Float64 ¶
func (r *BwRedisClient) Float64(cmd string, args ...interface{}) (float64, error)
返回 float64
func (*BwRedisClient) Float64s ¶
func (r *BwRedisClient) Float64s(cmd string, args ...interface{}) ([]float64, error)
返回 []float64
func (*BwRedisClient) IdleCount ¶
func (r *BwRedisClient) IdleCount() int
func (*BwRedisClient) Int ¶
func (r *BwRedisClient) Int(cmd string, args ...interface{}) (int, error)
返回 int
func (*BwRedisClient) Int64 ¶
func (r *BwRedisClient) Int64(cmd string, args ...interface{}) (int64, error)
返回 int64
func (*BwRedisClient) Int64Map ¶
func (r *BwRedisClient) Int64Map(cmd string, args ...interface{}) (map[string]int64, error)
返回 map[string]int64
func (*BwRedisClient) Int64s ¶
func (r *BwRedisClient) Int64s(cmd string, args ...interface{}) ([]int64, error)
返回 []int64
func (*BwRedisClient) IntMap ¶
func (r *BwRedisClient) IntMap(cmd string, args ...interface{}) (map[string]int, error)
返回 map[string]int
func (*BwRedisClient) Ints ¶
func (r *BwRedisClient) Ints(cmd string, args ...interface{}) ([]int, error)
返回 []int
func (*BwRedisClient) Positions ¶
func (r *BwRedisClient) Positions(cmd string, args ...interface{}) ([]*[2]float64, error)
返回 positions
func (*BwRedisClient) Status ¶
func (r *BwRedisClient) Status() *NvRedisStatus
func (*BwRedisClient) String ¶
func (r *BwRedisClient) String(cmd string, args ...interface{}) (string, error)
返回 string
func (*BwRedisClient) StringMap ¶
func (r *BwRedisClient) StringMap(cmd string, args ...interface{}) (map[string]string, error)
返回 map[string]string
func (*BwRedisClient) Strings ¶
func (r *BwRedisClient) Strings(cmd string, args ...interface{}) ([]string, error)
返回 []string
func (*BwRedisClient) Uint64 ¶
func (r *BwRedisClient) Uint64(cmd string, args ...interface{}) (uint64, error)
返回 uint64
func (*BwRedisClient) Values ¶
func (r *BwRedisClient) Values(cmd string, args ...interface{}) ([]interface{}, error)
返回 []interface{}
type DistributeLock ¶
type DistributeLock struct {
// contains filtered or unexported fields
}
type DistributeLockOpt ¶
type DistributeLockOpt func(*DistributeLock)
type NvRedisShortClient ¶
短连接
func NewRedisShort ¶
func NewRedisShort(address string) (*NvRedisShortClient, error)
func (*NvRedisShortClient) CloseConn ¶
func (r *NvRedisShortClient) CloseConn() error
func (*NvRedisShortClient) ReplyBool ¶
func (r *NvRedisShortClient) ReplyBool(cmd string, args ...interface{}) (bool, error)
func (*NvRedisShortClient) ReplyBytes ¶
func (r *NvRedisShortClient) ReplyBytes(cmd string, args ...interface{}) ([]byte, error)
func (*NvRedisShortClient) ReplyFloat64 ¶
func (r *NvRedisShortClient) ReplyFloat64(cmd string, args ...interface{}) (float64, error)
func (*NvRedisShortClient) ReplyInt ¶
func (r *NvRedisShortClient) ReplyInt(cmd string, args ...interface{}) (int, error)
func (*NvRedisShortClient) ReplyInt64 ¶
func (r *NvRedisShortClient) ReplyInt64(cmd string, args ...interface{}) (int64, error)
func (*NvRedisShortClient) ReplyString ¶
func (r *NvRedisShortClient) ReplyString(cmd string, args ...interface{}) (string, error)
func (*NvRedisShortClient) ReplyUint64 ¶
func (r *NvRedisShortClient) ReplyUint64(cmd string, args ...interface{}) (uint64, error)
type NvRedisStatus ¶
Click to show internal directories.
Click to hide internal directories.