redis

package
v0.0.0-...-7be19fd Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Addr() string
	Password() string
}

type Redis

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

func NewRedis

func NewRedis(config Config) *Redis

func (Redis) Close

func (r Redis) Close() error

func (Redis) Get

func (r Redis) Get(key string) (string, error)

func (Redis) Set

func (r Redis) Set(key, value string, expire time.Duration) error

Jump to

Keyboard shortcuts

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