5 internal class CacheItem<KeyType, ValueType>
7 private readonly KeyType key;
8 private readonly ValueType value;
9 private readonly DateTime created;
10 private readonly DateTime? expires;
11 private DateTime lastUsed;
13 internal CacheItem(KeyType Key, ValueType Value, DateTime Created, DateTime? Expires)
17 this.created = Created;
18 this.expires = Expires;
19 this.lastUsed = Created;
22 internal KeyType Key => this.key;
23 internal ValueType Value => this.value;
24 internal DateTime Created => this.created;
25 internal DateTime? Expires => this.expires;
27 internal DateTime LastUsed
30 set => this.lastUsed = value;