goredis

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoredisConn

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

func (*GoredisConn) Close

func (self *GoredisConn) Close() error

func (*GoredisConn) Eval

func (self *GoredisConn) Eval(ctx context.Context, script *redsyncredis.Script, keysAndArgs ...interface{}) (interface{}, error)

func (*GoredisConn) Get

func (self *GoredisConn) Get(ctx context.Context, name string) (string, error)

func (*GoredisConn) PTTL

func (self *GoredisConn) PTTL(ctx context.Context, name string) (time.Duration, error)

func (*GoredisConn) Set

func (self *GoredisConn) Set(ctx context.Context, name string, value string) (bool, error)

func (*GoredisConn) SetNX

func (self *GoredisConn) SetNX(ctx context.Context, name string, value string, expiry time.Duration) (bool, error)

type GoredisPool

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

func NewGoredisPool

func NewGoredisPool(delegate *redis.Client) *GoredisPool

func (*GoredisPool) Get

func (self *GoredisPool) Get() redsyncredis.Conn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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