cache

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(string, func() (string, error), ...Opts) (string, error)
	MGet(...string) ([]interface{}, error)
	Del(string) (bool, error)
	MDel(...string) ([]bool, error)
}

type Option added in v0.1.11

type Option struct {
	Timeout       time.Duration
	RandomTimeout time.Duration
}

type Opts added in v0.1.11

type Opts func(*Option)

func WithRandomTimeout added in v0.1.11

func WithRandomTimeout(randomTimeout time.Duration) Opts

func WithTimeout added in v0.1.11

func WithTimeout(timeout time.Duration) Opts

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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