redis

package
v0.0.0-...-66da4ae Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckClientIdle

func CheckClientIdle(ctx context.Context, rdb *redis.Client, searchName string, limit int) error

* Check the client with name "searchName" has an idle time less than "limit"

func GetLeaderHostAddress

func GetLeaderHostAddress(ctx context.Context, rdb *redis.Client) string

* Find the leader host address from Redis

func Instance

func Instance() *redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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