Cache and Storage
TTL cache
net.cached(key, options, loader) caches JSON per site and coalesces loads for the same key.
Playback URLs should use a short TTL and stale: false, without persistence.
peek(key) reads an existing value, including expired ones; refresh(key, options, loader) returns immediately and refreshes in the background according to the TTL; clearCache(key) clears one entry, and omitting key clears every TTL entry for the current site and cancels loads.
Python's self.net.cachedText(key, options, loader) returns raw JSON text while cached decodes to a Python value; both share TTL and clearing rules. Java's cached returns a JSON string.
Local
Use local in Java, self.local in Python or local in QuickJS for small settings. Read and write with get(key)/set(key, value)/delete(key); the App isolates it per site. Java uses JSON strings, Python/QuickJS use JSON values. Clearing the TTL cache never touches Local.