Class CacheEntry
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A entry in a memory cache.
- Inheritance
-
Cache
Entry
- Extension Methods
Remarks
Initializes a new instance of the Cache
Constructors
CacheEntry(string?, byte[], DateTimeOffset, DateTimeOffset?)
A entry in a memory cache.
public CacheEntry(string? typeName, byte[] value, DateTimeOffset createdAt, DateTimeOffset? expiresAt)
Parameters
typeName
stringThe name of the type being stored.
value
byte[]The value being stored.
createdAt
DateTime Offset The date and time the entry was created.
expiresAt
DateTime ?Offset The date and time when the entry expires.
Remarks
Initializes a new instance of the Cache
Properties
CreatedAt
Gets or sets the date and time when the entry was created.
Property Value
ExpiresAt
Gets or sets the date and time when the entry will expire.
Property Value
TypeName
Gets or sets the type name of the entry.
Property Value
Value
Gets or sets the value of the entry.
Property Value
- byte[]