NodeCache class

Caches the last-known node list so the nodes screen can paint instantly on reload while a fresh fetch runs. Backed by KeyValueStore; the cache is best-effort — any decode error yields null (treated as a cold cache).

Constructors

NodeCache(KeyValueStore _kv, {String prefix = defaultPrefix})
Creates a cache over kv, namespaced under prefix so two apps on one origin do not share a node list.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the cache (e.g. on sign-out).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() List<NodeDescriptor>?
Returns the cached nodes, or null if absent/unreadable.
toString() String
A string representation of this object.
inherited
write(List<NodeDescriptor> nodes) → void
Replaces the cache with nodes.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultPrefix → const String
The default key namespace, matching SettingsStore.defaultPrefix.