redis

package
v0.0.0-...-8e6f2e6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCfg

type RedisCfg struct {
	DB     int
	Client *redis.Client
	// contains filtered or unexported fields
}

func NewRedisDb

func NewRedisDb(host, password, sni string, db int) *RedisCfg

func (*RedisCfg) DeleteByPrefix

func (c *RedisCfg) DeleteByPrefix(ctx context.Context, prefix string)

func (*RedisCfg) DeleteKeys

func (c *RedisCfg) DeleteKeys(ctx context.Context, keys []string)

Jump to

Keyboard shortcuts

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