logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PrefetchPolicy

    Value object that defines the overall prefetch policy configuration.
    Combines strategy and eviction policy to control cache behavior.

    Inheritance
    object
    PrefetchPolicy
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.AssetPrefetcher.Domain.ValueObjects
    Assembly: Serenity.AssetPrefetcher.Domain.dll
    Syntax
    public class PrefetchPolicy

    Constructors

    PrefetchPolicy(PrefetchStrategy, PrefetchEvictionPolicy)

    Initializes a new prefetch policy with the specified strategy and eviction policy.

    Declaration
    public PrefetchPolicy(PrefetchStrategy strategy, PrefetchEvictionPolicy eviction)
    Parameters
    Type Name Description
    PrefetchStrategy strategy

    The prefetch strategy to use

    PrefetchEvictionPolicy eviction

    The eviction policy to use

    Properties

    Eviction

    Declaration
    public PrefetchEvictionPolicy Eviction { get; }
    Property Value
    Type Description
    PrefetchEvictionPolicy

    The eviction policy determining how assets are removed from cache.

    Strategy

    Declaration
    public PrefetchStrategy Strategy { get; }
    Property Value
    Type Description
    PrefetchStrategy

    The prefetch strategy determining how assets are loaded.

    In this article
    © 2026 Serenity. All Rights Reserved