cache

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCacheEntry added in v1.0.2

type ApiCacheEntry struct {
	Timestamp uint64
	Hash      uint64
	Key       string
}

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(c context.Context) (cache *Cache, e error)

func (*Cache) ApiDump added in v1.0.2

func (m *Cache) ApiDump(country, key string, w io.Writer) error

func (*Cache) ApiDumpKeys added in v1.0.2

func (m *Cache) ApiDumpKeys() io.Reader

func (*Cache) ApiPurge added in v1.0.2

func (m *Cache) ApiPurge(country, key string) error

func (*Cache) ApiPurgeAll added in v1.0.2

func (m *Cache) ApiPurgeAll() error

func (*Cache) ApiStats added in v1.0.2

func (m *Cache) ApiStats() io.Reader

func (*Cache) ApiStatsReset added in v1.0.2

func (m *Cache) ApiStatsReset(country string) error

func (*Cache) Bootstrap

func (m *Cache) Bootstrap()

func (*Cache) Cache added in v1.0.5

func (m *Cache) Cache(country, key string, payload []byte) error

func (*Cache) IsCached added in v1.0.5

func (m *Cache) IsCached(country, key string) (_ bool, e error)

func (*Cache) Write added in v1.0.5

func (m *Cache) Write(country, key string, w io.Writer) error

Jump to

Keyboard shortcuts

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