Documentation
¶
Index ¶
- type KVRedisService
- func (r *KVRedisService) AddToSets(ctx context.Context, key string, value string) error
- func (r *KVRedisService) AddToSortedSets(ctx context.Context, setName string, key string, exp time.Duration) error
- func (r *KVRedisService) CheckKeyHashMap(ctx context.Context, hash, key string) bool
- func (r *KVRedisService) CheckRedisKey(ctx context.Context, keys ...string) (bool, error)
- func (r *KVRedisService) DelValue(ctx context.Context, key string) error
- func (r *KVRedisService) GetFromHashMap(ctx context.Context, hash, key string) (string, error)
- func (r *KVRedisService) GetFromSortedSets(ctx context.Context, setName string, key string) (float64, error)
- func (r *KVRedisService) GetJSONObject(ctx context.Context, key string) (interface{}, error)
- func (r *KVRedisService) GetStoreDomains(ctx context.Context, sets string, member string) (bool, error)
- func (r *KVRedisService) GetValue(ctx context.Context, key string) (string, error)
- func (r *KVRedisService) Publish(ctx context.Context, chanel string, data interface{}) error
- func (r *KVRedisService) RemoveSets(ctx context.Context, key string, value string) error
- func (r *KVRedisService) SetJSONObject(ctx context.Context, key string, value interface{}, expiration time.Duration) error
- func (r *KVRedisService) SetToHashMap(ctx context.Context, hash, key string, value string) error
- func (r *KVRedisService) SetValue(ctx context.Context, key string, value string, expiration time.Duration) error
- func (r *KVRedisService) Subscribe(ctx context.Context, chanel string) *redis.PubSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVRedisService ¶
type KVRedisService struct {
// contains filtered or unexported fields
}
func GetKVRedisDriver ¶
func (*KVRedisService) AddToSortedSets ¶
func (*KVRedisService) CheckKeyHashMap ¶
func (r *KVRedisService) CheckKeyHashMap(ctx context.Context, hash, key string) bool
func (*KVRedisService) CheckRedisKey ¶
func (*KVRedisService) DelValue ¶
func (r *KVRedisService) DelValue(ctx context.Context, key string) error
func (*KVRedisService) GetFromHashMap ¶
func (*KVRedisService) GetFromSortedSets ¶
func (*KVRedisService) GetJSONObject ¶
func (r *KVRedisService) GetJSONObject(ctx context.Context, key string) (interface{}, error)
func (*KVRedisService) GetStoreDomains ¶
func (*KVRedisService) Publish ¶
func (r *KVRedisService) Publish(ctx context.Context, chanel string, data interface{}) error
func (*KVRedisService) RemoveSets ¶
func (*KVRedisService) SetJSONObject ¶
func (*KVRedisService) SetToHashMap ¶
Click to show internal directories.
Click to hide internal directories.