logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct CacheEntrySnapshot

    Snapshot of a cache entry for debugging and monitoring purposes.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.AssetPrefetcher.Domain.ValueObjects
    Assembly: Serenity.AssetPrefetcher.Domain.dll
    Syntax
    public struct CacheEntrySnapshot

    Properties

    Key

    The asset key identifier.

    Declaration
    public string Key { readonly get; set; }
    Property Value
    Type Description
    string

    The asset key identifier.

    LastAccessUtc

    Last access timestamp in UTC.

    Declaration
    public DateTime LastAccessUtc { readonly get; set; }
    Property Value
    Type Description
    DateTime

    The last access timestamp in UTC.

    Obj

    Reference to the cached asset object. Typed as object instead of the engine's native asset type because Domain must not reference UnityEngine — the same pattern used for the template properties on Serenity.Ui.Domain.Interfaces.IUiThemeComponents.

    Declaration
    public object Obj { readonly get; set; }
    Property Value
    Type Description
    object

    The cached asset object, or null if not loaded.

    RefCount

    Reference count for the cached asset.

    Declaration
    public int RefCount { readonly get; set; }
    Property Value
    Type Description
    int

    The reference count for the cached asset.

    SizeBytes

    Memory size of the asset in bytes.

    Declaration
    public long SizeBytes { readonly get; set; }
    Property Value
    Type Description
    long

    The memory size of the asset in bytes.

    TypeName

    Type name of the cached asset.

    Declaration
    public string TypeName { readonly get; set; }
    Property Value
    Type Description
    string

    The type name of the cached asset, or null if not loaded.

    In this article
    © 2026 Serenity. All Rights Reserved