redis

package
v0.0.0-...-dceda3e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 5 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 {
	Client redis.Client
}

func Init

func Init(config config.Redis) *Redis

Initializes a new client

func (Redis) Close

func (r Redis) Close()

Close connection to redis.

func (Redis) Get

func (r Redis) Get(ctx context.Context, key string) (data.Record, error)

Retrieve an item from redis datastore.

func (Redis) Set

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

Sets a value in the redis datastore.

Jump to

Keyboard shortcuts

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