zredis

package
v1.6.4-0...-ea8c640 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	*gredis.Redis
	// contains filtered or unexported fields
}

func GetRedis

func GetRedis(name ...string) (result *Redis)

func (*Redis) Do

func (redis *Redis) Do(command string, args ...interface{}) (interface{}, error)

func (*Redis) DoVar

func (redis *Redis) DoVar(command string, args ...interface{}) (*gvar.Var, error)

func (*Redis) Get

func (redis *Redis) Get(key interface{}) (string, error)

func (*Redis) Key

func (redis *Redis) Key(patten string) ([]interface{}, error)

func (*Redis) Set

func (redis *Redis) Set(key interface{}, value string, dur time.Duration) error

Jump to

Keyboard shortcuts

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