Namespace Serenity.AssetPrefetcher.Application.UseCases
Classes
AssetPrefetcherUseCases
Aggregate container for all asset prefetcher use cases. Provides centralized access to all prefetch-related business operations.
PrefetchAsset
Use case for prefetching a single asset with specified priority and context.
Encapsulates the business logic for individual asset prefetch operations.
PrewarmContext
Use case for prewarming a context by loading multiple assets simultaneously.
Optimizes performance by preloading assets that are likely to be needed together.
QueryCacheStatus
Use case for querying the cache status of multiple assets.
Provides information about which assets are cached, loading, or available.
ReleaseContext
Use case for releasing all assets associated with a specific context.
Frees up memory by removing cached assets that are no longer needed.
UpdateTarget
Use case for updating target asset configurations and priorities.
Recalculates context demand (e.g. {i-1, i, i+1}) with updated priorities
and schedules prefetch operations accordingly.