Specifies the startup mode (also known as isolation level) of Cache.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
[SerializableAttribute] public enum CacheMode |
Visual Basic |
---|
<SerializableAttribute> _ Public Enumeration CacheMode |
Visual C++ |
---|
[SerializableAttribute] public enum class CacheMode |
Members
Member name | Value | Description | |
---|---|---|---|
Default | 0 | Use the startup mode specified in the configuration. | |
InProc | 1 | Start the cache inproc, i.e., with a low isolation level. | |
OutProc | 2 | Start the cache outproc, i.e., with a high isolation level. |
Remarks
This enumeration allows you to control the the startup mode of Cache programmatically. The startup
mode OutProc corresponds to a High isolation level implying that
the Cache runs in NCache service's process.
Similarly InProc implies that Cache is inproc to the applications.
InProc is equal to specfying no mode at all, and in that case the mode
specified in cache configuration is used.
An isolated cache can be shared between applications on the same node. Morever an isolated cache's lifetime is explicitly controlled by using NCache Manager application.