DedicatedGatewayRequestOptions.BypassIntegratedCache Property

Definition

Gets or sets if bypass the integrated cache or not associated with the request in the Azure Cosmos DB service. When set this value to true, the request will not be served from the integrated cache, and the response will not be cached either.

public bool? BypassIntegratedCache { get; set; }
member this.BypassIntegratedCache : Nullable<bool> with get, set
Public Property BypassIntegratedCache As Nullable(Of Boolean)

Property Value

Default value is false.

Examples

DedicatedGatewayRequestOptions dedicatedGatewayRequestOptions = new DedicatedGatewayRequestOptions
{
    BypassIntegratedCache = true
};

// For ItemRequestOptions
ItemRequestOptions requestOptions = new ItemRequestOptions
{
    DedicatedGatewayRequestOptions = dedicatedGatewayRequestOptions
};

// For QueryRequestOptions
QueryRequestOptions requestOptions = new QueryRequestOptions
{
    DedicatedGatewayRequestOptions = dedicatedGatewayRequestOptions
};

Applies to