IT:AppFabric:HowTo:Caching/Create a Cache
Summary
As MS recommends the installation of AppFabric on dedicated servers, it's common to use AppFabric Caching for several applications in the same network.
It's therefore necessary to keep caching compartimentalized.
Process
The default cache is called 'default' (case sensitive).
One creates additonal caches as follows:
new-cache MyApp
There is a limit of 128 named caches. If you require more than 128 caches, client applications could consider using regions.
Stats
Later, you can check the stats of the cache as follows:
PS C:\Windows\system32> get-cachestatistics Test1 Size : 0 ItemCount : 0 RegionCount : 1 RequestCount : 60426 ReadRequestCount : 60412 WriteRequestCount : 7 MissCount : 2 IncomingBandwidth : 1517307 OutgoingBandwidth : 9907792 PS C:\Windows\system32>
If you are seeing a lot of red – namely Object reference not set to an instance, ensure that the *Remote Registry“ Windows Service is turned on.