Jaa


Common Cache Cluster Management Tasks (Windows Server AppFabric Caching)

This section provides examples and guidance for common management tasks for Windows Server AppFabric caching. For additional documentation about these tasks and others not covered here, see Managing Windows Server AppFabric Caching Features.

  1. Reconfiguring Cache Cluster Settings (Windows Server AppFabric Caching)

  2. Managing Security (Windows Server AppFabric Caching)

  3. Managing Caches (Windows Server AppFabric Caching)

  4. Updating Cache Servers (Windows Server AppFabric Caching)

Using Windows PowerShell

To manage your cache cluster, you must install the Cache Administration feature of AppFabric. With this feature installed, you can run caching configuration and administration Windows PowerShell commands. Note that you must always set the context for the cache cluster on which you are operating. This is accomplished with the Use-CacheCluster command.

Use-CacheCluster

In this example, the Use-CacheCluster command is run without any parameters. This causes the command to examine the AppFabric caching configuration on the local server to determine the appropriate cache cluster. If you are not running the commands on a cache host, or if you want to connect to a different cache cluster, you can specify additional parameters for the provider and connection string of the target cache cluster configuration store.

Use-CacheCluster -Provider System.Data.SqlClient -ConnectionString "Data Source=SQLServer1;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True"

There are two ways of using Windows PowerShell for managing the caching features of AppFabric. On the Start Menu, click Administrative Tools, and then select Windows PowerShell Modules. Or you can open the Start Menu, click All Programs, Windows Server AppFabric, and then click Caching Administration Windows PowerShell. In either case, you will experience less problems and limitations if you can start Windows PowerShell as an administrator. For example, you cannot start or stop the cache cluster unless you running Windows PowerShell as an administrator.

Important

The examples shown in this section demonstrate common scenarios, but they are not comprehensive. For a complete list of commands, see Using Windows PowerShell with AppFabric Caching. Also note that the get-help command in Windows PowerShell can provide console-based help for any command.

See Also

Concepts

Windows Server AppFabric Caching Deployment and Management Guide