caches

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: MIT Imports: 3 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[Model any] struct {
	// contains filtered or unexported fields
}

func UseCache

func UseCache[Model any](prefix string, icache cache.ICache) *Cache[Model]

func (*Cache[Model]) Delete

func (c *Cache[Model]) Delete(key string) error

func (*Cache[Model]) Get

func (c *Cache[Model]) Get(key string) (Model, bool)

func (*Cache[Model]) Set

func (c *Cache[Model]) Set(key string, value Model, expiration time.Duration) error

Jump to

Keyboard shortcuts

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