redis

package
v0.0.0-...-bcea5fb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 6 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(cfg *config.Config) *Redis

New returns a Redis (Cache interface) object.

func (*Redis) Get

func (c *Redis) Get(k string) (string, error)

Get fetches and returns a (string) value from the store.

func (*Redis) Set

func (c *Redis) Set(k, v string, x time.Duration) (bool, error)

Set writes a key->value to the key store.

Jump to

Keyboard shortcuts

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