redis

package
v0.0.0-...-b351023 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNotFound = Error("key does not exist")
)

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Client

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

func NewClient

func NewClient(ctx context.Context) *Client

func (*Client) Del

func (c *Client) Del(keys ...string) error

func (*Client) FlushDB

func (c *Client) FlushDB() error

func (*Client) Get

func (c *Client) Get(key string, result interface{}) error

func (*Client) Set

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

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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