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;
2using System.Threading.Tasks;
3
5{
9 public enum RemovedReason
10 {
14 Replaced,
15
19 NotUsed,
20
24 Old,
25
29 Space,
30
34 Manual
35 }
36
43
49 public class CacheItemEventArgs<KeyType, ValueType> : EventArgs
50 {
51 private readonly KeyType key;
52 private readonly ValueType value;
53 private readonly RemovedReason reason;
54
55 internal CacheItemEventArgs(KeyType Key, ValueType Value, RemovedReason Reason)
56 {
57 this.key = Key;
58 this.value = Value;
59 this.reason = Reason;
60 }
61
65 public KeyType Key => this.key;
66
70 public ValueType Value => this.value;
71
75 public RemovedReason Reason => this.reason;
76 }
77}
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.
delegate Task CacheItemEventHandler< KeyType, ValueType >(object Sender, CacheItemEventArgs< KeyType, ValueType > e)
Delegate for cache item removal event handlers.
RemovedReason
Reason for removing the item.