cache

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDirectory = ".flcache"

CacheDirectory is the directory where cache files are stored

Variables

This section is empty.

Functions

func Get

func Get(file string, data []byte) ([]*models.Node, bool)

Get gets the cache information from file

func Store

func Store(file string, data []byte, nodes []*models.Node)

Store stores the cache information to file

Types

type Cache

type Cache struct {
	// Hash is the hash of the data
	Hash string
	// Nodes is the nodes
	Nodes []*models.Node
}

Cache is the cache information

Jump to

Keyboard shortcuts

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