logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IEvictionService

    Service responsible for cache eviction policies and victim selection.
    Determines which cached items should be removed when budget constraints are exceeded.

    Namespace: Serenity.AssetPrefetcher.Application.Interfaces
    Assembly: Serenity.AssetPrefetcher.Application.dll
    Syntax
    public interface IEvictionService : IService, IFoundationSettings

    Methods

    SelectVictims(IEnumerable<CacheItem>, PrefetchBudget)

    Selects cache items for eviction based on the current budget constraints.

    Declaration
    IEnumerable<CacheItem> SelectVictims(IEnumerable<CacheItem> cache, PrefetchBudget budget)
    Parameters
    Type Name Description
    IEnumerable<CacheItem> cache

    Current collection of cached items

    PrefetchBudget budget

    Budget constraints defining cache limits

    Returns
    Type Description
    IEnumerable<CacheItem>

    Collection of cache items selected for eviction

    In this article
    © 2026 Serenity. All Rights Reserved