Documentation ¶
Index ¶
- func BitCount(ctx context.Context, client redis.Cmdable, key string) (count int64, err error)
- func Del(ctx context.Context, client redis.Cmdable, key string) (count int, err error)
- func DelPattern(ctx context.Context, client redis.Cmdable, database int, pattern string) (count int, err error)
- func Exists(ctx context.Context, client redis.Cmdable, key string) (res int64, err error)
- func Expire(ctx context.Context, client redis.Cmdable, key string, expire int64) (res bool, err error)
- func Get(ctx context.Context, client redis.Cmdable, key string) (value string, err error)
- func HDel(ctx context.Context, client redis.Cmdable, key string, field string) (err error)
- func HGet(ctx context.Context, client redis.Cmdable, key string, field string) (value string, err error)
- func HGetAll(ctx context.Context, client redis.Cmdable, key string) (value map[string]string, err error)
- func HSet(ctx context.Context, client redis.Cmdable, key string, field string, ...) (err error)
- func Info(ctx context.Context, client redis.Cmdable) (res string, err error)
- func LPush(ctx context.Context, client redis.Cmdable, key string, value string) (err error)
- func LRem(ctx context.Context, client redis.Cmdable, key string, count int64, ...) (err error)
- func LSet(ctx context.Context, client redis.Cmdable, key string, index int64, ...) (err error)
- func MemoryUsage(ctx context.Context, client redis.Cmdable, key string) (size int64, err error)
- func Persist(ctx context.Context, client redis.Cmdable, key string) (res bool, err error)
- func RPush(ctx context.Context, client redis.Cmdable, key string, value string) (err error)
- func SAdd(ctx context.Context, client redis.Cmdable, key string, value string) (err error)
- func SRem(ctx context.Context, client redis.Cmdable, key string, value string) (err error)
- func Set(ctx context.Context, client redis.Cmdable, key string, value string) (err error)
- func SetBit(ctx context.Context, client redis.Cmdable, key string, offset int64, value int) (err error)
- func TTL(ctx context.Context, client redis.Cmdable, key string) (res int64, err error)
- func ValueType(ctx context.Context, client redis.Cmdable, key string) (ValueType string, err error)
- type ClusterService
- func (this_ *ClusterService) BitCount(param *Param, key string) (count int64, err error)
- func (this_ *ClusterService) Del(param *Param, key string) (count int, err error)
- func (this_ *ClusterService) DelPattern(param *Param, pattern string) (count int, err error)
- func (this_ *ClusterService) Exists(param *Param, key string) (res int64, err error)
- func (this_ *ClusterService) Expire(param *Param, key string, expire int64) (res bool, err error)
- func (this_ *ClusterService) Get(param *Param, key string) (value string, err error)
- func (this_ *ClusterService) GetClient(param *Param) (client redis.Cmdable, err error)
- func (this_ *ClusterService) GetValueInfo(param *Param, key string, valueStart, valueSize int64) (valueInfo *ValueInfo, err error)
- func (this_ *ClusterService) HDel(param *Param, key string, field string) (err error)
- func (this_ *ClusterService) HGet(param *Param, key string, field string) (value string, err error)
- func (this_ *ClusterService) HGetAll(param *Param, key string) (value map[string]string, err error)
- func (this_ *ClusterService) HSet(param *Param, key string, field string, value string) (err error)
- func (this_ *ClusterService) Info(param *Param) (res string, err error)
- func (this_ *ClusterService) Keys(param *Param, pattern string, size int64) (keysResult *KeysResult, err error)
- func (this_ *ClusterService) LPush(param *Param, key string, value string) (err error)
- func (this_ *ClusterService) LRem(param *Param, key string, count int64, value string) (err error)
- func (this_ *ClusterService) LSet(param *Param, key string, index int64, value string) (err error)
- func (this_ *ClusterService) Persist(param *Param, key string) (res bool, err error)
- func (this_ *ClusterService) RPush(param *Param, key string, value string) (err error)
- func (this_ *ClusterService) SAdd(param *Param, key string, value string) (err error)
- func (this_ *ClusterService) SRem(param *Param, key string, value string) (err error)
- func (this_ *ClusterService) Set(param *Param, key string, value string) (err error)
- func (this_ *ClusterService) SetBit(param *Param, key string, offset int64, value int) (err error)
- func (this_ *ClusterService) Stop()
- func (this_ *ClusterService) TTL(param *Param, key string) (res int64, err error)
- type Config
- type IService
- type KeyInfo
- type KeysResult
- type Param
- type V8Service
- func (this_ *V8Service) BitCount(param *Param, key string) (count int64, err error)
- func (this_ *V8Service) Del(param *Param, key string) (count int, err error)
- func (this_ *V8Service) DelPattern(param *Param, pattern string) (count int, err error)
- func (this_ *V8Service) Exists(param *Param, key string) (res int64, err error)
- func (this_ *V8Service) Expire(param *Param, key string, expire int64) (res bool, err error)
- func (this_ *V8Service) Get(param *Param, key string) (value string, err error)
- func (this_ *V8Service) GetClient(param *Param) (client redis.Cmdable, err error)
- func (this_ *V8Service) GetValueInfo(param *Param, key string, valueStart, valueSize int64) (valueInfo *ValueInfo, err error)
- func (this_ *V8Service) HDel(param *Param, key string, field string) (err error)
- func (this_ *V8Service) HGet(param *Param, key string, field string) (value string, err error)
- func (this_ *V8Service) HGetAll(param *Param, key string) (value map[string]string, err error)
- func (this_ *V8Service) HSet(param *Param, key string, field string, value string) (err error)
- func (this_ *V8Service) Info(param *Param) (res string, err error)
- func (this_ *V8Service) Keys(param *Param, pattern string, size int64) (keysResult *KeysResult, err error)
- func (this_ *V8Service) LPush(param *Param, key string, value string) (err error)
- func (this_ *V8Service) LRem(param *Param, key string, count int64, value string) (err error)
- func (this_ *V8Service) LSet(param *Param, key string, index int64, value string) (err error)
- func (this_ *V8Service) Persist(param *Param, key string) (res bool, err error)
- func (this_ *V8Service) RPush(param *Param, key string, value string) (err error)
- func (this_ *V8Service) SAdd(param *Param, key string, value string) (err error)
- func (this_ *V8Service) SRem(param *Param, key string, value string) (err error)
- func (this_ *V8Service) Set(param *Param, key string, value string) (err error)
- func (this_ *V8Service) SetBit(param *Param, key string, offset int64, value int) (err error)
- func (this_ *V8Service) Stop()
- func (this_ *V8Service) TTL(param *Param, key string) (res int64, err error)
- type ValueInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelPattern ¶ added in v0.0.7
func Expire ¶ added in v0.0.7
func Expire(ctx context.Context, client redis.Cmdable, key string, expire int64) (res bool, err error)
Expire 让给定键在指定的秒数之后过期
func MemoryUsage ¶ added in v0.0.7
Types ¶
type ClusterService ¶ added in v0.0.7
type ClusterService struct { *Config // contains filtered or unexported fields }
func (*ClusterService) BitCount ¶ added in v0.0.8
func (this_ *ClusterService) BitCount(param *Param, key string) (count int64, err error)
func (*ClusterService) Del ¶ added in v0.0.7
func (this_ *ClusterService) Del(param *Param, key string) (count int, err error)
func (*ClusterService) DelPattern ¶ added in v0.0.7
func (this_ *ClusterService) DelPattern(param *Param, pattern string) (count int, err error)
func (*ClusterService) Exists ¶ added in v0.0.7
func (this_ *ClusterService) Exists(param *Param, key string) (res int64, err error)
func (*ClusterService) Get ¶ added in v0.0.7
func (this_ *ClusterService) Get(param *Param, key string) (value string, err error)
func (*ClusterService) GetClient ¶ added in v0.0.7
func (this_ *ClusterService) GetClient(param *Param) (client redis.Cmdable, err error)
func (*ClusterService) GetValueInfo ¶ added in v0.0.8
func (*ClusterService) HDel ¶ added in v0.0.7
func (this_ *ClusterService) HDel(param *Param, key string, field string) (err error)
func (*ClusterService) Info ¶ added in v0.0.7
func (this_ *ClusterService) Info(param *Param) (res string, err error)
func (*ClusterService) Keys ¶ added in v0.0.7
func (this_ *ClusterService) Keys(param *Param, pattern string, size int64) (keysResult *KeysResult, err error)
func (*ClusterService) LPush ¶ added in v0.0.7
func (this_ *ClusterService) LPush(param *Param, key string, value string) (err error)
func (*ClusterService) Persist ¶ added in v0.0.7
func (this_ *ClusterService) Persist(param *Param, key string) (res bool, err error)
func (*ClusterService) RPush ¶ added in v0.0.7
func (this_ *ClusterService) RPush(param *Param, key string, value string) (err error)
func (*ClusterService) SAdd ¶ added in v0.0.7
func (this_ *ClusterService) SAdd(param *Param, key string, value string) (err error)
func (*ClusterService) SRem ¶ added in v0.0.7
func (this_ *ClusterService) SRem(param *Param, key string, value string) (err error)
func (*ClusterService) Set ¶ added in v0.0.7
func (this_ *ClusterService) Set(param *Param, key string, value string) (err error)
func (*ClusterService) Stop ¶ added in v0.0.7
func (this_ *ClusterService) Stop()
type IService ¶
type IService interface { Stop() Info(param *Param) (res string, err error) Keys(param *Param, pattern string, size int64) (keysResult *KeysResult, err error) Expire(param *Param, key string, expire int64) (res bool, err error) TTL(param *Param, key string) (res int64, err error) Persist(param *Param, key string) (res bool, err error) Exists(param *Param, key string) (res int64, err error) GetValueInfo(param *Param, key string, valueStart, valueSize int64) (valueInfo *ValueInfo, err error) Set(param *Param, key string, value string) (err error) SAdd(param *Param, key string, value string) (err error) SRem(param *Param, key string, value string) (err error) LPush(param *Param, key string, value string) (err error) RPush(param *Param, key string, value string) (err error) LSet(param *Param, key string, index int64, value string) (err error) LRem(param *Param, key string, count int64, value string) (err error) HSet(param *Param, key string, field string, value string) (err error) HGet(param *Param, key string, field string) (value string, err error) HGetAll(param *Param, key string) (value map[string]string, err error) HDel(param *Param, key string, field string) (err error) Del(param *Param, key string) (count int, err error) DelPattern(param *Param, pattern string) (count int, err error) SetBit(param *Param, key string, offset int64, value int) (err error) BitCount(param *Param, key string) (count int64, err error) Get(param *Param, key string) (value string, err error) }
func NewClusterService ¶ added in v0.0.8
NewClusterService 创建集群客户端
func NewRedisService ¶ added in v0.0.8
NewRedisService 创建客户端
type KeysResult ¶ added in v0.0.7
func ClusterKeys ¶ added in v0.0.7
type V8Service ¶ added in v0.0.7
type V8Service struct { *Config // contains filtered or unexported fields }
func (*V8Service) DelPattern ¶ added in v0.0.7
func (*V8Service) GetValueInfo ¶ added in v0.0.8
type ValueInfo ¶ added in v0.0.7
type ValueInfo struct { Database int `json:"database"` Key string `json:"key"` ValueType string `json:"valueType"` Value interface{} `json:"value"` ValueCount int64 `json:"valueCount"` ValueStart int64 `json:"valueStart"` ValueEnd int64 `json:"valueEnd"` Cursor uint64 `json:"cursor"` MemoryUsage int64 `json:"memoryUsage"` TTL int64 `json:"ttl"` }
Click to show internal directories.
Click to hide internal directories.