Table of Contents

Class RequestOptions

Namespace
The.Caching
Assembly
Instagile.dll

Configures cache behavior and execution priority for entity queries.

public class RequestOptions
Inheritance
RequestOptions
Inherited Members

Fields

Default

The default request options.

public static readonly RequestOptions Default

Field Value

RequestOptions

Properties

Priority

The priority level to be used when the query must execute against the database. Determines execution order when multiple uncached queries are pending. Default value is Default.

public RequestPriority Priority { get; set; }

Property Value

RequestPriority

Requirements

Specifies the minimum acceptable cache state for query results. Determines whether cached data can be returned and whether to wait for fresh data. Default value is Stale.

public ResultState Requirements { get; set; }

Property Value

ResultState

Remarks

Stale: Return immediately if data is present. If it was stale, refresh in background.

Fresh: Return immediately if data is present and fresh. Wait for fresh data if data is present but stale.

Uncached: Always wait for new data even if present and fresh.