Home > AppFabric > Commonly used AppFabric cmdlets

Commonly used AppFabric cmdlets

Note, all cmdlets must run in administrator mode powershell preferable from the Caching Administration shortcut, else in any normal powershell, run

import-module DistributedCacheAdministration

image

 

An easy way to get all the commands available in the module is to run the following powershell

Get-Command -module DistributedCacheAdministration | Sort-Object > C:\AppFabric.txt

 

Get-AFCacheHostStatus, gets the status of the cache hosts in the cluster

image

 

Get-CacheStatistics [cachename], gets statistics about the cache

image

Get-CacheClusterHealth, gets the health of the Cache Cluster

image

 

Get-CacheHostConfig, gets the host configuration

image

 

Get-CacheConfig [cachename], gets the cache configuration

image

image

 

Setting

Description

CacheName

The name of the cache.

TimeToLive

The default time that items reside in the cache before expiring.

CacheType

The type of cache. This is always Partitioned.

Secondaries

A value of 1 indicates that the cache uses the high availability feature.

IsExpirable

Indicates whether objects in the cache can expire.

EvictionType

Specifies an eviction type of Least-Recently-Used (LRU) or None.

NotificationsEnabled

Indicates whether notifications are enabled for this cache.

Taken from http://msdn.microsoft.com/en-us/library/ff921029(v=azure.10).aspx

Some other useful URLs

http://msdn.microsoft.com/en-us/library/ff921010(v=azure.10).aspx

http://msdn.microsoft.com/en-us/library/ff921023(v=azure.10).aspx

Advertisements
Categories: AppFabric
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: