redisutil

package module
v0.0.0-...-8331f42 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Del func(ctx context.Context, keys ...string) *redis.IntCmd
View Source
var Get func(ctx context.Context, key string) *redis.StringCmd
View Source
var Scan func(ctx context.Context, cursor uint64, match string, count int64) *redis.ScanCmd
View Source
var Set func(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd

Functions

func Init

func Init(ctx context.Context, config map[string]RedisConfig) error

func ParseRedisConfig

func ParseRedisConfig(config map[string]string) (map[string]RedisConfig, error)

Types

type RedisConfig

type RedisConfig struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

Jump to

Keyboard shortcuts

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