Class SerializerCacheItem<T>
Basic abstraction for serializers to work with cache items.
Inherited Members
Namespace:CacheManager.Core.Internal
Assembly:CacheManager.Core.dll
Syntax
public abstract class SerializerCacheItem<T> : ICacheItemConverter
Type Parameters
Name | Description |
---|---|
T | The type. |
Constructors
| Improve this Doc View SourceSerializerCacheItem()
Initializes a new instance of the SerializerCacheItem<T> class.
Declaration
public SerializerCacheItem()
SerializerCacheItem(ICacheItemProperties, Object)
Initializes a new instance of the SerializerCacheItem<T> class.
Declaration
public SerializerCacheItem(ICacheItemProperties properties, object value)
Parameters
Type | Name | Description |
---|---|---|
ICacheItemProperties | properties | The actual properties. |
Object | value | The cache value. |
Properties
| Improve this Doc View SourceCreatedUtc
Gets or sets the created utc date in ticks. Can be converted from and to DateTime.
Declaration
public abstract long CreatedUtc { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
ExpirationMode
Gets or sets the expiration mode.
Declaration
public abstract ExpirationMode ExpirationMode { get; set; }
Property Value
Type | Description |
---|---|
ExpirationMode |
ExpirationTimeout
Gets or sets the expiration timeout in milliseconds. Can be coverted from and to TimeSpan.
Declaration
public abstract double ExpirationTimeout { get; set; }
Property Value
Type | Description |
---|---|
Double |
Key
Gets or sets the key.
Declaration
public abstract string Key { get; set; }
Property Value
Type | Description |
---|---|
String |
LastAccessedUtc
Gets or sets the last accessed utc date in ticks. Can be converted from and to DateTime.
Declaration
public abstract long LastAccessedUtc { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Region
Gets or sets the region.
Declaration
public abstract string Region { get; set; }
Property Value
Type | Description |
---|---|
String |
UsesExpirationDefaults
Gets or sets a value indicating whether the default expiration should be used.
Declaration
public abstract bool UsesExpirationDefaults { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Value
Gets or sets the value.
Declaration
public abstract T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
ValueType
Gets or sets the value type.
Declaration
public abstract string ValueType { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceToCacheItem<TTarget>()
Declaration
public CacheItem<TTarget> ToCacheItem<TTarget>()
Returns
Type | Description |
---|---|
CacheItem<TTarget> |
Type Parameters
Name | Description |
---|---|
TTarget |