redis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 14 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 {
	Cmd        string
	Prefix     string
	Key        string
	Args       []interface{}
	WithScores bool

	Addr    *util.DBAddress
	TimeLog *log.TimeLog
}

func (*Redis) Do

func (r *Redis) Do(ctx context.Context) (interface{}, bool, error)

Do 执行 redis

func (*Redis) Query

func (r *Redis) Query(ctx context.Context) (interface{}, *proto.Detail, bool, error)

Query sql 查询

func (*Redis) SetParams

func (r *Redis) SetParams(req *filter.Request,
	prop *obj.Property, addr *util.DBAddress, transInfo *obj.TransInfo) error

Directories

Path Synopsis
Package redis 封装第三方库redigo
Package redis 封装第三方库redigo

Jump to

Keyboard shortcuts

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