Add expireBalanceSnapshotSec option.
If you want to have a cached balance for long - set it to a full year for example. Default value is twice the balanceSnapshotSec (1 day by default).
But set balanceSnapshotSec often enough to do balance snapshots (caches) as often as you need.
Add
expireBalanceSnapshotSec
option. If you want to have a cached balance for long - set it to a full year for example. Default value is twice thebalanceSnapshotSec
(1 day by default). But setbalanceSnapshotSec
often enough to do balance snapshots (caches) as often as you need.