redis

package
v0.0.0-...-4083a58 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 2 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       int
}

type Connection

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

func New

func New(cfg *Config) (*Connection, error)

func (*Connection) Get

func (c *Connection) Get(keys ...string) ([]interface{}, error)

func (*Connection) SendCommand

func (c *Connection) SendCommand(args ...interface{}) (interface{}, error)

func (*Connection) Set

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

Jump to

Keyboard shortcuts

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