stash

package module
v0.0.0-...-b412d3b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 5 Imported by: 0

README

Stash

extremely lightweight Redis connectior in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDialer

func NewDialer(host string) func() (redis.Conn, error)

func NewPool

func NewPool(dial func() (redis.Conn, error)) *redis.Pool

Types

type Stash

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

func NewStash

func NewStash(host string) (*Stash, error)

func (*Stash) Do

func (s *Stash) Do(commandName string, args ...interface{}) (interface{}, error)

func (*Stash) Get

func (s *Stash) Get(bucket, key string) (interface{}, error)

func (*Stash) Ping

func (s *Stash) Ping() error

func (*Stash) Set

func (s *Stash) Set(bucket, key string, value interface{}) error

Jump to

Keyboard shortcuts

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