locker

package
v1.6.5 Latest Latest
Warning

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

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

README

yago-locker

config

[locker]
driver = "redis"
driver_instance_id = "redis"

[redis]
addr = "127.0.0.1:6379"
auth = "yourpass"
db = 0
max_idle = 5
idle_timeout = 30

注: driver_instance_id 表示配置文件中的 redis 组件名

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id ...string) lock.ILocker

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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