Interface: CacheInvalidatedEventData
Defined in: shared/types/events.ts:447
Payload for cache invalidation events.
Remarksโ
Used to notify listeners that a cache entry or the entire cache has been invalidated for a specific reason.
Exampleโ
const event: CacheInvalidatedEventData = {
type: "all",
reason: "manual",
timestamp: Date.now(),
};
Hierarchyโ
Extendsโ
Indexableโ
[
key:string]:unknown
[
key:number]:unknown
[
key:symbol]:unknown
Propertiesโ
timestampโ
readonlytimestamp:number
Defined in: shared/types/events.ts:110
The time (in milliseconds since epoch) when the event occurred.
Inherited fromโ
_meta?โ
readonlyoptional_meta?:EventMetadata
Defined in: shared/types/events.ts:112
Runtime metadata describing the emission context.
Inherited fromโ
_originalMeta?โ
readonlyoptional_originalMeta?:EventMetadata
Defined in: shared/types/events.ts:114
Preserves previously attached metadata when re-emitting events.
Inherited fromโ
BaseStateSyncEventData._originalMeta
identifier?โ
readonlyoptionalidentifier?:string
Defined in: shared/types/events.ts:454
The specific identifier affected (optional for global invalidation).
Remarksโ
If omitted, the invalidation is considered global.
reasonโ
readonlyreason:CacheInvalidationReason
Defined in: shared/types/events.ts:461
The reason for invalidation.
Remarksโ
See CACHE_INVALIDATION_REASON for the complete list.
typeโ
readonlytype:CacheInvalidationType
Defined in: shared/types/events.ts:468
The type of cache invalidation.
Remarksโ
See CACHE_INVALIDATION_TYPE for the complete list.