redis

package
v0.0.0-...-bf85ca1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 8 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 struct {
	Address  string
	Password string
	DB       string
}

type Impl

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

func (*Impl) Get

func (i *Impl) Get(key string) (string, error)

func (*Impl) HGetAll

func (i *Impl) HGetAll(key string) (map[string]string, error)

func (*Impl) Set

func (i *Impl) Set(key string, value interface{}, expiration time.Duration) (string, error)

type Redis

type Redis interface {
	Set(key string, value interface{}, expiration time.Duration) (string, error)
	Get(key string) (string, error)
	HGetAll(key string) (map[string]string, error)
}

Jump to

Keyboard shortcuts

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