redis

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 GetKVRedisDriver(cfg *models.Config) (*KVRedisService, error)

func (*KVRedisService) AddToSets

func (r *KVRedisService) AddToSets(ctx context.Context, key string, value string) error

func (*KVRedisService) AddToSortedSets

func (r *KVRedisService) AddToSortedSets(ctx context.Context, setName string, key string, exp time.Duration) error

func (*KVRedisService) CheckKeyHashMap

func (r *KVRedisService) CheckKeyHashMap(ctx context.Context, hash, key string) bool

func (*KVRedisService) CheckRedisKey

func (r *KVRedisService) CheckRedisKey(ctx context.Context, keys ...string) (bool, error)

func (*KVRedisService) DelValue

func (r *KVRedisService) DelValue(ctx context.Context, key string) error

func (*KVRedisService) GetFromHashMap

func (r *KVRedisService) GetFromHashMap(ctx context.Context, hash, key string) (string, error)

func (*KVRedisService) GetFromSortedSets

func (r *KVRedisService) GetFromSortedSets(ctx context.Context, setName string, key string) (float64, error)

func (*KVRedisService) GetJSONObject

func (r *KVRedisService) GetJSONObject(ctx context.Context, key string) (interface{}, error)

func (*KVRedisService) GetStoreDomains

func (r *KVRedisService) GetStoreDomains(ctx context.Context, sets string, member string) (bool, error)

func (*KVRedisService) GetValue

func (r *KVRedisService) GetValue(ctx context.Context, key string) (string, error)

func (*KVRedisService) Publish

func (r *KVRedisService) Publish(ctx context.Context, chanel string, data interface{}) error

func (*KVRedisService) RemoveSets

func (r *KVRedisService) RemoveSets(ctx context.Context, key string, value string) error

func (*KVRedisService) SetJSONObject

func (r *KVRedisService) SetJSONObject(ctx context.Context, key string, value interface{}, expiration time.Duration) error

func (*KVRedisService) SetToHashMap

func (r *KVRedisService) SetToHashMap(ctx context.Context, hash, key string, value string) error

func (*KVRedisService) SetValue

func (r *KVRedisService) SetValue(ctx context.Context, key string, value string, expiration time.Duration) error

func (*KVRedisService) Subscribe

func (r *KVRedisService) Subscribe(ctx context.Context, chanel string) *redis.PubSub

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL