Use-CacheCluster

Use-CacheCluster

Sets the context of your PowerShell session to a particular cache cluster. Note that you must run this command before using any other Cache Administration commands in PowerShell.

Syntax

Parameter Set: Default
Use-CacheCluster [[-Provider] <String> ] [[-ConnectionString] <String> ] [ <CommonParameters>]

Detailed Description

After starting a PowerShell session on a cache host, run this command without any parameters to use the connection settings that reside on the current machine. If you need to connect to a different cache cluster, use the Provider and ConnectionString parameters to specify the cache cluster explicitly.

Parameters

-ConnectionString<String>

The connection string to the provider that contains the cache cluster configuration store.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-Provider<String>

The provider used to store the cluster configuration settings.

XML
System.Data.SqlClient
[Custom Provider Name]

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Examples