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¶
| Name | Value | Description |
|---|---|---|
Added | 0 | Gets or sets the date and time when the entity was added. |
Removed | 1 | Gets or sets a value indicating whether the item has been removed. |
Updated | 2 | Gets or sets the date and time when the entity was last updated. |
Moved | 3 | Indicates whether the item has been moved from its original location. |
Refreshed | 4 | Gets or sets a value indicating whether the data has been refreshed. |
Cleared | 5 | Indicates that the item has been cleared and is no longer in use. |
BatchOperation | 6 | Represents an operation that can be executed as part of a batch process. |
BatchAdded | 7 | Represents a batch addition operation where multiple items are added at once. |
BatchRemoved | 8 | Represents a batch removal operation where multiple items are removed at once. |
Reset | 9 | Replaces 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. |