redis

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 2 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 {
	Address  string
	Password string
}

Redis wrapper.

func (Redis) Get

func (r Redis) Get(key string) ([]byte, error)

Get returns a value associated with the provided key.

func (Redis) Set

func (r Redis) Set(key string, value interface{}, expiration time.Duration) error

Set sets a value for the provided key.

Jump to

Keyboard shortcuts

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