cache

package
v0.0.0-...-d833094 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDirectory = ".zxcache"

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