redis2

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedigoConfig

type RedigoConfig struct {
	Type        string `cnf:",def=node,enum=node|cluster"`
	Addr        string `cnf:",NA"`
	Pass        string `cnf:",NA"`
	Key         string `cnf:",NA"`
	MaxIdleConn int    `cnf:",NA"`
	MaxOpenConn int    `cnf:",NA"`
}

Redigo初始化的配置参数

type RedigoX

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

Redigo初始化的配置参数

func NewRedigo

func NewRedigo(cf *RedigoConfig) *RedigoX

func (*RedigoX) Del

func (rdx *RedigoX) Del(key string) (bool, error)

func (*RedigoX) Exists

func (rdx *RedigoX) Exists(key string) bool

func (*RedigoX) Get

func (rdx *RedigoX) Get(key string) ([]byte, error)

func (*RedigoX) GetCommon

func (rdx *RedigoX) GetCommon(key string) (string, error)

func (*RedigoX) LikeDeletes

func (rdx *RedigoX) LikeDeletes(key string) error

func (*RedigoX) Set

func (rdx *RedigoX) Set(key string, data any, time int) error

Jump to

Keyboard shortcuts

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