redis

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) redis.UniversalClient

func InitRedises

func InitRedises()

func MqLsPop added in v1.0.16

func MqLsPop(rds redis.UniversalClient, keys []string, timeout int, handler func(key, data string), goPoolSize int)

list结构主要用来做异步操作,相当于一对一发送接收

func MqLsPush added in v1.0.16

func MqLsPush(ctx context.Context, dbKey string, key string, data ...interface{})

func ZBatchAdd added in v1.0.16

func ZBatchAdd(ctx context.Context, rds redis.UniversalClient, keyName string, members []*redis.Z, ttl, batchSize int) error

func ZDescartes added in v1.0.16

func ZDescartes(ctx context.Context, rds redis.UniversalClient, dimValues [][]string, filter ZDescartesFilter,
	ttl, batchSize int) error

Types

type ZDescartesFilter added in v1.0.16

type ZDescartesFilter func([]string) (string, map[string]int64)

Jump to

Keyboard shortcuts

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