cache

package
v0.0.0-...-f8036e4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Unlicense Imports: 9 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 NewCache

func NewCache(appCtx context.Context) *Cache

func (*Cache) Close

func (c *Cache) Close()

func (*Cache) FetchCategory

func (c *Cache) FetchCategory(name string, ownerID uint64, fetch func() (database.Category, error)) (value database.Category, err error)

func (*Cache) FetchCentroids

func (c *Cache) FetchCentroids(categoryID uint64, fetch func() ([]database.Centroid, error)) (values []database.Centroid, err error)

func (*Cache) FetchOwner

func (c *Cache) FetchOwner(name string, fetch func() (database.Owner, error)) (value database.Owner, err error)

Jump to

Keyboard shortcuts

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