General Cache Settings
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
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-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).
<cache-config cache-name="demoCache"> <cache-settings inproc="True"> ... </cache-settings> </cache-config>
<cache-config cache-name="demoCache"> <cache-settings inproc="False"> ... </cache-settings> </cache-config>