watch method
Returns the Stream of real-time changes happening with the CacheInfo.
Implementation
Stream<CacheInfo?> watch() {
if (db == null) {
return const Stream.empty();
}
final stmt = db!.select(db!.cacheSummary)..where((u) => u.id.equals(0));
return stmt.watchSingleOrNull().map(
(e) => e == null ? null : _CacheInfoDb.fromDb(e),
);
}