lock

package
v0.0.0-...-eb3c019 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObtainLock

func ObtainLock(conn redis.Conn, lockKey string, timeout time.Duration) bool

ObtainLock 获得锁

func ReleaseLock

func ReleaseLock(conn redis.Conn, lockKey string)

ReleaseLock 释放锁

Types

This section is empty.

Jump to

Keyboard shortcuts

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