Skip to content

CacheAction enum

Defined in

Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.CacheAction Modifiers: public sealed

Summary

Specifies the type of action performed on a cache entry.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Remarks

Use this enumeration to indicate the nature of a cache operation, such as when an entry is added, removed, updated, cleared, evicted, or when a batch operation is performed. This can be useful for event handling, logging, or auditing cache changes.

Values

NameValueDescription
Added0Gets or sets the date and time when the entity was added.
Removed1Gets or sets a value indicating whether the item has been removed.
Updated2Gets or sets the date and time when the entity was last updated.
Moved3Indicates whether the item has been moved from its original location.
Refreshed4Gets or sets a value indicating whether the data has been refreshed.
Cleared5Indicates that the item has been cleared and is no longer in use.
BatchOperation6Represents an operation that can be executed as part of a batch process.
BatchAdded7Represents a batch addition operation where multiple items are added at once.
BatchRemoved8Represents a batch removal operation where multiple items are removed at once.
Reset9Replaces all contents with the snapshot in the batch, which may be empty. A list raises it when a deferral ends and the contents changed, and on the versioned stream (without a snapshot) after a replace, an edit, a silent clear or a removal by predicate. A consumer that sees it without a snapshot must copy the source again.