cache

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigCache

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

func (*BigCache) Delete

func (b *BigCache) Delete(key string) error

func (*BigCache) Get

func (b *BigCache) Get(key string) (any, error)

func (*BigCache) Set

func (b *BigCache) Set(key string, value any) error

type BigCacheMethod

type BigCacheMethod interface {
	Get(key string) (any, error)
	Set(key string, value any) error
	Delete(key string) error
	// contains filtered or unexported methods
}

func NewBigCache

func NewBigCache(ctx context.Context, life time.Duration) (BigCacheMethod, error)

Jump to

Keyboard shortcuts

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