pub fn replace_account_usage(
db: &Db,
entries: &BTreeMap<String, CachedAccountUsage>,
) -> Result<()>Expand description
Overwrite the usage cache with entries: clear every row then insert
the full map in one write txn, mirroring the poller’s whole-map write.