rds

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host string)

func Do

func Do(cmd string, args ...interface{}) (interface{}, error)

func DoStr

func DoStr(cmd string, args ...interface{}) string

func GetClient

func GetClient() redis.Conn

func IsConnected added in v0.1.1

func IsConnected() bool

func Lock

func Lock(name string, maxTime time.Duration) error

try do a lock

func LogStatus

func LogStatus()

func SetDebug

func SetDebug(d bool)

func UnLock

func UnLock(name string) error

try do a lock

Types

This section is empty.

Jump to

Keyboard shortcuts

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