cache

package
v0.0.0-...-5e4bbe4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: GPL-3.0 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[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any]() *Cache[V]

func (*Cache[V]) Get

func (c *Cache[V]) Get(key string) V

func (*Cache[V]) Set

func (c *Cache[V]) Set(key string, value V, ttl time.Duration)

Jump to

Keyboard shortcuts

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