pub fn apply_cache_replay_entry(
cache: &mut Cache,
entry: &EventStoreEntry,
) -> Result<bool, CacheReplayError>Expand description
Applies one event-store entry to cache state when a replay rule exists.
Returns Ok(true) when the entry changed cache state and Ok(false) when the
payload is outside the current cache bootstrap replay surface, or when a position
event’s target position is absent from the cache (logged as a warning so the report’s
ignored count surfaces the divergence instead of claiming a full apply).
§Errors
Returns CacheReplayError::Decode when a supported payload cannot be decoded and
CacheReplayError::Apply when the decoded payload cannot be applied to the cache.