cache

package
v0.0.0-...-3de1f11 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 16 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 New

func New(conf config.CacheConf) (*Cache, error)

func (*Cache) Close

func (cache *Cache) Close()

func (*Cache) DelCache

func (c *Cache) DelCache(name ...string) (err error)

func (*Cache) FindCache

func (c *Cache) FindCache(name string, dest any) error

func (*Cache) QueryDBWithCache

func (c *Cache) QueryDBWithCache(name string, dest any, queryDB func()) error

func (*Cache) StoreCache

func (c *Cache) StoreCache(source any, name ...string) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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