redis

package
v0.0.0-...-85ba462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistributedLock

func DistributedLock(ctx context.Context, client *redis.Client, key string, value interface{}, timeout time.Duration) (bool, error)

func DistributedUnlock

func DistributedUnlock(ctx context.Context, client *redis.Client, key string) (int64, error)

func NewRedisClient

func NewRedisClient() *redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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