distlock

package
v2.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistLock

type DistLock struct {
	Pool   *redis.Pool
	Kmutex *kmutex.Kmutex
}

func New

func New(pool *redis.Pool) (distLock *DistLock)

func (*DistLock) SetCacheWithDistLock

func (d *DistLock) SetCacheWithDistLock(key string, ttl interface{}, value interface{}) (err error)

Jump to

Keyboard shortcuts

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