ArmFrontDoorModelFactory.FrontDoorCacheConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.FrontDoor.Models.FrontDoorCacheConfiguration FrontDoorCacheConfiguration(Azure.ResourceManager.FrontDoor.Models.FrontDoorQuery? queryParameterStripDirective = default, string queryParameters = default, Azure.ResourceManager.FrontDoor.Models.DynamicCompressionEnabled? dynamicCompression = default, TimeSpan? cacheDuration = default);
static member FrontDoorCacheConfiguration : Nullable<Azure.ResourceManager.FrontDoor.Models.FrontDoorQuery> * string * Nullable<Azure.ResourceManager.FrontDoor.Models.DynamicCompressionEnabled> * Nullable<TimeSpan> -> Azure.ResourceManager.FrontDoor.Models.FrontDoorCacheConfiguration
Public Shared Function FrontDoorCacheConfiguration (Optional queryParameterStripDirective As Nullable(Of FrontDoorQuery) = Nothing, Optional queryParameters As String = Nothing, Optional dynamicCompression As Nullable(Of DynamicCompressionEnabled) = Nothing, Optional cacheDuration As Nullable(Of TimeSpan) = Nothing) As FrontDoorCacheConfiguration
Parameters
- queryParameterStripDirective
- Nullable<FrontDoorQuery>
Treatment of URL query terms when forming the cache key.
- queryParameters
- String
query parameters to include or exclude (comma separated).
- dynamicCompression
- Nullable<DynamicCompressionEnabled>
Whether to use dynamic compression for cached content.
The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.
Returns
A new FrontDoorCacheConfiguration instance for mocking.