cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cache persists the last successfully-loaded board per project so a board stays browsable when its source is unreachable — a GitHub project you synced earlier can still be read offline. It is a best-effort read cache: failures to save or load are non-fatal and simply mean no offline copy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir returns the directory boards are cached in, honouring XDG_CACHE_HOME.

func Load

func Load(key string) (*core.BoardData, bool)

Load returns the cached board for key, and whether one was found.

func Save

func Save(key string, bd *core.BoardData) error

Save writes a board to the cache under key. It is best-effort: any error (no home dir, read-only fs) is returned but callers may ignore it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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