Documentation
¶
Overview ¶
Package cache provides a reserve.Store decorator that caches point-in-time reserve lookups in front of a wrapped store.
Point-in-time reads are keyed by mint and a coarse time bucket that doubles as the freshness window. Range and live reads pass straight through. Live writes are guarded against the last successfully saved slot per mint: a write whose slot is not greater is rejected with currency.ErrStaleReserveState without a round-trip to the backing store. Everything else passes straight through.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.