NCache 4.3 - Online Documentation

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.
 
 
  1. Open NCache Manager, create a cache with name defaultCache (this is compulsory).
  2. Then create as many caches, as the number of regions you require.
     
     
     
  3. 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>
     
  4. Then call CreateRegion method of NCache API to create regions.
     
 
See Also

 
© Copyright  2014 Alachisoft. All rights reserved.