cache

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCache

type BaseCache interface {
	Set(string, interface{}, time.Duration)
	Get(string) (interface{}, bool)
	Delete(string)
	Clear()
}

type Cache

type Cache interface {
	BaseCache
	GetString(string) (string, bool)
	GetStringE(string) (string, bool, error)
}

Cache define cache interface

func NewCache

func NewCache(opts ...Option) Cache

type Option

type Option func(*Options)

type Options

type Options struct {
	BaseCache BaseCache
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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