cache

package
v0.21.26 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: BSD-3-Clause Imports: 2 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 struct {
	// contains filtered or unexported fields
}

func New

func New() (*Cache, error)

func (*Cache) Get

func (c *Cache) Get(key string) (any, bool)

func (*Cache) Partition

func (c *Cache) Partition(key string) *Cache

func (*Cache) Purge

func (c *Cache) Purge(key string)

func (*Cache) Set

func (c *Cache) Set(key string, val any) bool

func (*Cache) SetTTL

func (c *Cache) SetTTL(key string, val any, ttl time.Duration) bool

Jump to

Keyboard shortcuts

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