cache
A storage-agnostic, JSON-based cache backed by any go/io
Medium — local disk, in-memory, or a sandboxed root — so the same cache
code runs against real storage in production and an ephemeral mock in tests.
Install
Section titled “Install”go get dappco.re/go/cache@latestImport
Section titled “Import”import "dappco.re/go/cache"Construct
Section titled “Construct”Build a cache over any io.Medium:
r := cache.NewCacheStorage(medium, "cache")if !r.OK { return r }Or register it as a core/go service on a *core.Core:
if r := cache.NewService(cfg)(c); !r.OK { return r }Sibling packages
Section titled “Sibling packages”Source
Section titled “Source”github.com/dappcore/go-cache — full source, issues, and releases.