Class CacheEntry
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A entry in a memory cache.
public class CacheEntry
- Inheritance
-
CacheEntry
- Extension Methods
Remarks
Initializes a new instance of the CacheEntry class.
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
DateTimeOffsetThe date and time the entry was created.
expiresAt
DateTimeOffset?The date and time when the entry expires.
Remarks
Initializes a new instance of the CacheEntry class.
Properties
CreatedAt
Gets or sets the date and time when the entry was created.
public DateTimeOffset CreatedAt { get; protected set; }
Property Value
ExpiresAt
Gets or sets the date and time when the entry will expire.
public DateTimeOffset? ExpiresAt { get; protected set; }
Property Value
TypeName
Gets or sets the type name of the entry.
public string? TypeName { get; protected set; }
Property Value
Value
Gets or sets the value of the entry.
public byte[] Value { get; protected set; }
Property Value
- byte[]