cache

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 6

README

cache - a generic cache for reading files from disk and storing them in memory.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalObjectCache *cache

GlobalObjectCache is our global object cache, of course.

Functions

func Load

func Load(cfg map[string]any, name string, loadFunc loadFunc) (interface{}, error)

func Open

func Open(filename string) (io.ReadCloser, int, error)

func Populate

func Populate(name string, data []byte, readFunc readFunc) error

func Precache

func Precache(filename string, rawBytes []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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