Using Regions through NCache Velocity Wrapper API
NCache supports regions by creating cache for each region. Here are all the steps to create regions using NCache Velocity Wrapper API.
-
Open NCache Manager, create a cache with name defaultCache (this is compulsory).
-
Then create as many caches, as the number of regions you require.
-
Open the application you are using to make regions, include app.config into your application, then add the keys for the regions using following syntax:
<configSections>
<appSettings>
<add key = "RegionA" value = "CacheA"/>
<add key = "RegionB" value = "CacheB"/>
</appSettings>
</configSections>
-
Then call CreateRegion method of NCache API to create regions.
See Also