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 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 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) Del(ctx context.Context, database int, key string) (count int, err error)
- func (this_ *ClusterService) DelPattern(ctx context.Context, database int, pattern string) (count int, err error)
- func (this_ *ClusterService) Exists(ctx context.Context, database int, key string) (res int64, err error)
- func (this_ *ClusterService) Expire(ctx context.Context, database int, key string, expire int64) (res bool, err error)
- func (this_ *ClusterService) Get(ctx context.Context, database int, key string, valueStart, valueSize int64) (valueInfo *ValueInfo, err error)
- func (this_ *ClusterService) GetClient(ctx context.Context, database int) (client redis.Cmdable, err error)
- func (this_ *ClusterService) GetLastUseTime() int64
- func (this_ *ClusterService) GetWaitTime() int64
- func (this_ *ClusterService) HDel(ctx context.Context, database int, key string, field string) (err error)
- func (this_ *ClusterService) HSet(ctx context.Context, database int, key string, field string, value string) (err error)
- func (this_ *ClusterService) Info(ctx context.Context) (res string, err error)
- func (this_ *ClusterService) Keys(ctx context.Context, database int, pattern string, size int64) (keysResult *KeysResult, err error)
- func (this_ *ClusterService) LPush(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *ClusterService) LRem(ctx context.Context, database int, key string, count int64, value string) (err error)
- func (this_ *ClusterService) LSet(ctx context.Context, database int, key string, index int64, value string) (err error)
- func (this_ *ClusterService) Persist(ctx context.Context, database int, key string) (res bool, err error)
- func (this_ *ClusterService) RPush(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *ClusterService) SAdd(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *ClusterService) SRem(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *ClusterService) Set(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *ClusterService) SetLastUseTime()
- func (this_ *ClusterService) Stop()
- func (this_ *ClusterService) TTL(ctx context.Context, database int, key string) (res int64, err error)
- type IService
- type KeyInfo
- type KeysResult
- type V8Service
- func (this_ *V8Service) Del(ctx context.Context, database int, key string) (count int, err error)
- func (this_ *V8Service) DelPattern(ctx context.Context, database int, pattern string) (count int, err error)
- func (this_ *V8Service) Exists(ctx context.Context, database int, key string) (res int64, err error)
- func (this_ *V8Service) Expire(ctx context.Context, database int, key string, expire int64) (res bool, err error)
- func (this_ *V8Service) Get(ctx context.Context, database int, key string, valueStart, valueSize int64) (valueInfo *ValueInfo, err error)
- func (this_ *V8Service) GetClient(ctx context.Context, database int) (client redis.Cmdable, err error)
- func (this_ *V8Service) GetLastUseTime() int64
- func (this_ *V8Service) GetWaitTime() int64
- func (this_ *V8Service) HDel(ctx context.Context, database int, key string, field string) (err error)
- func (this_ *V8Service) HSet(ctx context.Context, database int, key string, field string, value string) (err error)
- func (this_ *V8Service) Info(ctx context.Context) (res string, err error)
- func (this_ *V8Service) Keys(ctx context.Context, database int, pattern string, size int64) (keysResult *KeysResult, err error)
- func (this_ *V8Service) LPush(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *V8Service) LRem(ctx context.Context, database int, key string, count int64, value string) (err error)
- func (this_ *V8Service) LSet(ctx context.Context, database int, key string, index int64, value string) (err error)
- func (this_ *V8Service) Persist(ctx context.Context, database int, key string) (res bool, err error)
- func (this_ *V8Service) RPush(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *V8Service) SAdd(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *V8Service) SRem(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *V8Service) Set(ctx context.Context, database int, key string, value string) (err error)
- func (this_ *V8Service) SetLastUseTime()
- func (this_ *V8Service) Stop()
- func (this_ *V8Service) TTL(ctx context.Context, database int, 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 {
// contains filtered or unexported fields
}
func CreateClusterService ¶ added in v0.0.7
func (*ClusterService) DelPattern ¶ added in v0.0.7
func (*ClusterService) GetClient ¶ added in v0.0.7
func (this_ *ClusterService) GetClient(ctx context.Context, database int) (client redis.Cmdable, err error)
func (*ClusterService) GetLastUseTime ¶ added in v0.0.7
func (this_ *ClusterService) GetLastUseTime() int64
func (*ClusterService) GetWaitTime ¶ added in v0.0.7
func (this_ *ClusterService) GetWaitTime() int64
func (*ClusterService) Info ¶ added in v0.0.7
func (this_ *ClusterService) Info(ctx context.Context) (res string, err error)
func (*ClusterService) Keys ¶ added in v0.0.7
func (this_ *ClusterService) Keys(ctx context.Context, database int, pattern string, size int64) (keysResult *KeysResult, err error)
func (*ClusterService) SetLastUseTime ¶ added in v0.0.7
func (this_ *ClusterService) SetLastUseTime()
func (*ClusterService) Stop ¶ added in v0.0.7
func (this_ *ClusterService) Stop()
type KeysResult ¶ added in v0.0.7
func ClusterKeys ¶ added in v0.0.7
type V8Service ¶ added in v0.0.7
type V8Service struct {
// contains filtered or unexported fields
}
func CreateRedisService ¶ added in v0.0.7
func (*V8Service) DelPattern ¶ added in v0.0.7
func (*V8Service) GetLastUseTime ¶ added in v0.0.7
func (*V8Service) GetWaitTime ¶ added in v0.0.7
func (*V8Service) SetLastUseTime ¶ added in v0.0.7
func (this_ *V8Service) SetLastUseTime()
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.