General Cache Settings
Important
In case you want to update any cache settings, please refer to the Update Cache Config section.
Cache Size
Through this configuration option, you can specify an upper limit on the size of the cache in MB. The maximum cache size and amount of free system memory (virtual or physical) limit the number of items in the cache. If some eviction policy is specified, whenever the total data size in the cache reaches the maximum size, items are removed from the cache as per the eviction policy.
You can specify the Cache Size through config.ncconf file located at %NCHOME%\config. %NCHOME%
is the 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 values for local cache. For further details, please refer to Isolation levels. In config.ncconf, you can specify the attribute value of InProc to 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>