nonblock

package
v2.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BizBatchLock added in v2.1.5

func BizBatchLock(ctx context.Context, redisClient *redis.Client, prefixLockName string, params ...any) (func(), bool)

func RedisLock

func RedisLock(ctx context.Context, redisClient *redis.Client, lockName string, deadLockExpireTime time.Duration) bool

func RedisUnlock

func RedisUnlock(ctx context.Context, redisClient *redis.Client, lockName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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