CacheRead class

Cache-first helper for request resolution.

This usecase is intentionally small: it asks the cache for currently visible events matching unresolved filters and forwards them into the request response stream before or alongside network results.

Constructors

CacheRead(CacheManager cacheManager)

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveUnresolvedFilters({required RequestState requestState, required StreamController<Nip01Event> outController}) Future<void>
Finds matching visible events in cache and forwards them to outController.
toString() String
A string representation of this object.
inherited

Operators

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