Set-​Azure​Managed​Cache​Named​Cache

Updates a named cache in the specified Managed Cache Service instance.

Syntax

Set-AzureManagedCacheNamedCache
   [-ExpiryPolicy <String>]
   [-ExpiryTime <Int32>]
   [-Force]
   -Name <String>
   -NamedCache <String>
   [-Profile <AzureSMProfile>]
   [-WithHighAvailability]
   [-WithNotifications]
   [-WithoutEviction]
   [<CommonParameters>]

Description

The Set-AzureManagedCacheNamedCache cmdlet updates a named cache in the specified Azure Managed Cache Service instance in your Azure account and returns an object that represents the named cache.

Examples

Example 1: Update a named cache in the Managed Cache Service instance

PS C:\>Set-AzureManagedCacheNamedCache -Name "ContosoCache" -NamedCache "ContosoNamedCache"

This command updates a named cache named ContosoNamedCache in the Managed Cache Service instance named ContosoCache. It will update the named cache to use default values.

Example 2: Update a named cache with all parameters specified

PS C:\>Set-AzureManagedCacheNamedCache -Name "ContosoCache" -NamedCache "ContosoNamedCache" -ExpiryPolicy "Sliding" -ExpiryTime 10 -WithNotifications -WithHighAvailability -WithoutEviction

This command updates a named cache named ContosoNamedCache in the Managed Cache Service instance named ContosoCache. It has Notifications and High Availability enabled and Eviction disabled.

Required Parameters

-Name

Specifies the name of the Managed Cache Service instance in which to update a named cache.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamedCache

Specifies the name of the named cache to update.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ExpiryPolicy

Specifies the expiry policy for the named cache. The default value is Absolute.The acceptable values for this parameter are:- Absolute

  • Sliding
  • Never
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExpiryTime

Specifies the expiry time of the named cache, in minutes. The default value is 10.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WithHighAvailability

Indicates that high availability is enabled for the named cache. High availability is supported in the Standard and Premium cache offerings, and is unavailable in the Basic cache offering.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WithNotifications

Indicates that notifications are enabled for the named cache. Notifications are supported in the Standard and Premium cache offerings, and are unavailable in the Basic cache offering.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WithoutEviction

Indicates that Eviction is disabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.ManagedCache.Models.PSCacheServiceWithNamedCaches

Notes