ledis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIllegalParameter = errors.New("illegal parameter")

ErrIllegalParameter represents the input parameter(s) is illegal

Functions

func Initialize

func Initialize(dataPath string) error

Initialize initializes the ledis cache.

func Shared

func Shared() *ledisStore

Shared represents the global redis object

Types

type Option

type Option func(*options)

Option represents a handler for adjust the default option(s)

func DB

func DB(db int) Option

DB returns the option which sets the current working DB

func Password

func Password(p string) Option

Password returns the option which sets the password for auth

func Timeout

func Timeout(seconds uint32) Option

Timeout returns the option which changes the default dial timeout

Jump to

Keyboard shortcuts

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