Class PrefetchPolicy
Value object that defines the overall prefetch policy configuration.
Combines strategy and eviction policy to control cache behavior.
Inherited Members
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. |