cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder provide cache builder instance

func New

func New() *Builder

func (*Builder) Build

func (c *Builder) Build(opts ...Option) *cache.Cache

Build returns a new cache instance

func (*Builder) Default

func (c *Builder) Default() *cache.Cache

Default returns the default cache instance

type Option

type Option func(options *options)

func WithCleanupInterval

func WithCleanupInterval(d time.Duration) Option

func WithExpiration

func WithExpiration(d time.Duration) Option

Jump to

Keyboard shortcuts

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