Class DedicatedGatewayRequestOptions
The Dedicated Gateway request options
public class DedicatedGatewayRequestOptions
- Inheritance
-
DedicatedGatewayRequestOptions
- Inherited Members
- Extension Methods
Constructors
DedicatedGatewayRequestOptions()
public DedicatedGatewayRequestOptions()
Properties
BypassIntegratedCache
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; }
Property Value
- bool?
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
};
MaxIntegratedCacheStaleness
Gets or sets the staleness value associated with the request in the Azure Cosmos DB service.
public TimeSpan? MaxIntegratedCacheStaleness { get; set; }
Property Value
- TimeSpan?
Default value is null.
Remarks
For requests where the ConsistencyLevel is Eventual or Session, responses from the integrated cache are guaranteed to be no staler than value indicated by this MaxIntegratedCacheStaleness. Cache Staleness is supported in milliseconds granularity. Anything smaller than milliseconds will be ignored.