redis

package
v0.0.0-...-e29b812 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisHandler

type RedisHandler interface {
	Ping() error
	Set(key string, value interface{}, expiration time.Duration) error
	Get(key string) *redis.StringCmd
	Delete(key string) (int64, error)

	Client() *redis.Client
}

RedisHandler is an interface that defines the methods to interact with Redis.

func NewRedisHandler

func NewRedisHandler(ctx context.Context, opts *redis.Options) RedisHandler

NewRedisHandler is ...

Jump to

Keyboard shortcuts

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