Share via


CacheConfiguration Class

Definition

Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter))]
public class CacheConfiguration : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.CacheConfigurationTypeConverter))>]
type CacheConfiguration = class
    interface ICacheConfiguration
    interface IJsonSerializable
Public Class CacheConfiguration
Implements ICacheConfiguration
Inheritance
CacheConfiguration
Attributes
Implements

Constructors

Name Description
CacheConfiguration()

Creates an new CacheConfiguration instance.

Properties

Name Description
CacheDuration

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

DynamicCompression

Whether to use dynamic compression for cached content

QueryParameter

query parameters to include or exclude (comma separated).

QueryParameterStripDirective

Treatment of URL query terms when forming the cache key.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CacheConfiguration.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CacheConfiguration.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.ICacheConfiguration.

FromJsonString(String)

Creates a new instance of CacheConfiguration, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CacheConfiguration into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to