Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CacheItem.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
7 internal class CacheItem<KeyType, ValueType>
8 {
9 private readonly KeyType key;
10 private readonly ValueType value;
11 private readonly DateTime created;
12 private DateTime lastUsed;
13
14 internal CacheItem(KeyType Key, ValueType Value, DateTime Created)
15 {
16 this.key = Key;
17 this.value = Value;
18 this.created = Created;
19 this.lastUsed = Created;
20 }
21
22 internal KeyType Key => this.key;
23
24 internal ValueType Value => this.value;
25
26 internal DateTime Created => this.created;
27
28 internal DateTime LastUsed
29 {
30 get => this.lastUsed;
31 set => this.lastUsed = value;
32 }
33 }
34}