cache

package
v0.0.0-...-c7fab77 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[K comparable, V any](key K) bool

func Delete

func Delete[K comparable, V any](key K)

func DeleteExpired

func DeleteExpired[K comparable, V any]()

func Get

func Get[K comparable, V any](key K) (value V, ok bool)

func Keys

func Keys[K comparable, V any]() []K

func Set

func Set[K comparable, V any](key K, val V, opts ...cache2.ItemOption)

func WithExpiration

func WithExpiration(exp time.Duration) cache2.ItemOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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