cache

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache[T any]() cache.CacheInterface[T]

Types

type SimpleExpirationCache added in v0.0.10

type SimpleExpirationCache[T any] struct {
	// contains filtered or unexported fields
}

func NewSimpleExpirationCache added in v0.0.10

func NewSimpleExpirationCache[T any](expiration time.Duration) *SimpleExpirationCache[T]

func (*SimpleExpirationCache[T]) Get added in v0.0.10

func (c *SimpleExpirationCache[T]) Get() (T, bool)

func (*SimpleExpirationCache[T]) Set added in v0.0.10

func (c *SimpleExpirationCache[T]) Set(val T)

Jump to

Keyboard shortcuts

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