redis

package
v0.0.0-...-d705234 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *redis.Client

	NilErr = redis.Nil
)

Functions

func CacheGet

func CacheGet(key string, expiration time.Duration, f func() string) string

func Lock

func Lock(key string, expire int) bool

func Start

func Start()

func Unlock

func Unlock(key string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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