redisLock

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeyExpiry

func AddKeyExpiry(key, value string, expiry int) error

AddKeyExpiry 续时间

func InitRedis

func InitRedis(cli *redis.GoRedis)

func KeyLock

func KeyLock(key, value string, expiry int, timeout time.Duration) error

func KeyUnLock

func KeyUnLock(key, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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