redis

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(pool func(context.Context) (Conn, error)) cache.Provider

New creates new provider.

func NewPool added in v0.2.0

func NewPool(pool *redis.Pool) func(context.Context) (Conn, error)

NewPool creates redigo pool.

Types

type Conn added in v0.2.0

type Conn interface {
	Do(commandName string, args ...interface{}) (reply interface{}, err error)
	Send(commandName string, args ...interface{}) error
	Flush() error
	Close() error
}

Jump to

Keyboard shortcuts

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