goredis5

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func (*Conn) Close

func (self *Conn) Close() error

func (*Conn) Eval

func (self *Conn) Eval(script *redsyncredis.Script, keysAndArgs ...interface{}) (interface{}, error)

func (*Conn) Get

func (self *Conn) Get(name string) (string, error)

func (*Conn) PTTL

func (self *Conn) PTTL(name string) (time.Duration, error)

func (*Conn) Set

func (self *Conn) Set(name string, value string) (bool, error)

func (*Conn) SetNX

func (self *Conn) SetNX(name string, value string, expiry time.Duration) (bool, error)

type Pool

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

func NewPool

func NewPool(delegate *redis.Client) *Pool

func (*Pool) Get

func (self *Pool) Get(ctx context.Context) (redsyncredis.Conn, error)

Jump to

Keyboard shortcuts

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