redis

package
v0.0.0-...-eda81a1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func New

func New(configRedis config.RedisConfig) *Redis

func (*Redis) Get

func (r *Redis) Get(ctx context.Context, key string) ([]byte, error)

func (*Redis) Ping

func (r *Redis) Ping(ctx context.Context) error

func (*Redis) Set

func (r *Redis) Set(ctx context.Context, key string, a any) error

func (*Redis) SetMulti

func (r *Redis) SetMulti(ctx context.Context, a map[string]any) error

func (*Redis) SetMultiWithTTL

func (r *Redis) SetMultiWithTTL(ctx context.Context, timeout time.Duration, a map[string]any) error

func (*Redis) SetWithTTL

func (r *Redis) SetWithTTL(ctx context.Context, timeout time.Duration, key string, a any) error

Jump to

Keyboard shortcuts

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