Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CacheItemEventArgs.cs
1using System;
2
4{
8 public enum RemovedReason
9 {
13 Replaced,
14
18 NotUsed,
19
23 Old,
24
28 Space,
29
33 Manual
34 }
35
41 public class CacheItemEventArgs<KeyType, ValueType> : EventArgs
42 {
43 private readonly KeyType key;
44 private readonly ValueType value;
45 private readonly RemovedReason reason;
46
47 internal CacheItemEventArgs(KeyType Key, ValueType Value, RemovedReason Reason)
48 {
49 this.key = Key;
50 this.value = Value;
51 this.reason = Reason;
52 }
53
57 public KeyType Key => this.key;
58
62 public ValueType Value => this.value;
63
67 public RemovedReason Reason => this.reason;
68 }
69}
Event arguments for cache item removal events.
KeyType Key
Key of item that was removed.
ValueType Value
Value of item that was removed.
RemovedReason Reason
Reason for removing the item.
RemovedReason
Reason for removing the item.