• CacheManager
  • Documentation
  • Api Docs
  • MichaCo.net
    Show / Hide Table of Contents

    Class SerializerCacheItem<T>

    Basic abstraction for serializers to work with cache items.

    Inheritance
    Object
    SerializerCacheItem<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 Source

    SerializerCacheItem()

    Initializes a new instance of the SerializerCacheItem<T> class.

    Declaration
    public SerializerCacheItem()
    | Improve this Doc View Source

    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 Source

    CreatedUtc

    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
    | Improve this Doc View Source

    ExpirationMode

    Gets or sets the expiration mode.

    Declaration
    public abstract ExpirationMode ExpirationMode { get; set; }
    Property Value
    Type Description
    ExpirationMode
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Key

    Gets or sets the key.

    Declaration
    public abstract string Key { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Region

    Gets or sets the region.

    Declaration
    public abstract string Region { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Value

    Gets or sets the value.

    Declaration
    public abstract T Value { get; set; }
    Property Value
    Type Description
    T
    | Improve this Doc View Source

    ValueType

    Gets or sets the value type.

    Declaration
    public abstract string ValueType { get; set; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    ToCacheItem<TTarget>()

    Declaration
    public CacheItem<TTarget> ToCacheItem<TTarget>()
    Returns
    Type Description
    CacheItem<TTarget>
    Type Parameters
    Name Description
    TTarget
    Implements
    ICacheItemConverter.ToCacheItem<TTarget>()
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net