General Cache Settings
Important
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
Cache Size
Through this configuration option, you can specify an upper limit on the size of the cache in MB. The number of items in the cache are limited by maximum size of the cache and amount of free system memory (virtual or physical). If some eviction policy is specified, whenever total data size in cache reaches maximum size items are removed from the cache as per eviction policy.
You can specify the Cache Size through config.ncconf file located at %NCHOME%\config. %NCHOME%
is NCache install directory. In config.ncconf of EACH server specify the <storage>
tag under the <cache-settings>
tag:
<cache-config>
<cache-settings ...>
...
<storage type="heap" cache-size="1024mb"/>
...
</cache-settings>
</cache-config>
InProc/OutProc for Local Cache
You can specify InProc or OutProc value for local cache. For more detail please refer to the Isolation levels section.
In config.ncconf, you can specify the attribute value of inproc as true (for InProc) or false (for OutProc).
InProc:
<cache-config cache-name="demoCache">
<cache-settings inproc="True">
...
</cache-settings>
</cache-config>
OutProc:
<cache-config cache-name="demoCache">
<cache-settings inproc="False">
...
</cache-settings>
</cache-config>
See Also
Configure Caches
Configure Clients
Management Operations
Cache Cluster Settings