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.

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.

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.

  • /home/skysigal/public_html/data/pages/it/ad/appfabric/howto/caching_create_a_cache.txt
  • Last modified: 2023/11/04 22:52
  • by 127.0.0.1