AppFabric Caching
Use-CacheCluster
Get-CacheStatistics rua
Get-CacheClusterHealthThe Stop-CacheCluster or Restart-CacheCluster cache cluster commands cause all data to be flushed from the memory of all cache hosts in the cluster.
Set-CacheClusterSecurity -SecurityMode None -ProtectionLevel None
Grant-CacheAllowedClientAccount Everyone
Set-CacheHostConfig -HostName mac -CacheSize 1024 -CachePort 22233AppFabric Monitor Cache Size via WinRM
Enter-PSSession -ComputerName testsrv13 -Credential AlexandrM
set COMPLUS\_ApplicationMigrationRuntimeActivationConfigPath="C:\\Program Files\\AppFabric 1.1 for Windows Server\\"
Use-CacheCluster
(Get-CacheStatistics rua).Size / 1Mb
while($true) { (Get-CacheStatistics rua).Size / 1Mb; Sleep -Seconds 1}Turn on notification based local cache
Stop-CacheCluster
Set-CacheConfig rua -NotificationsEnabled True
Start-CacheCluster<!-- local cache enabled -->
<localCache
isEnabled="true"
sync="NotificationBased"
objectCount="100000"
ttlValue="60" />
<clientNotification pollInterval="300" />