NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Specifies how the provider must use a second-level cache for the
persistence unit.
Namespace: NPersistenceCorresponds to the value of the persistence.xmlshared-cache-mode element, and returned as the result of GetSharedCacheMode()()()().
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
| C# |
public enum SharedCacheMode
Members
| Member | Value | Description |
|---|---|---|
| ALL | 0 | All entities and entity-related state and data are cached.
|
| NONE | 1 | Caching is disabled for the persistence unit.
|
| ENABLE_SELECTIVE | 2 | Caching is enabled for all entities for Cacheable(true)
is specified. All other entities are not cached.
|
| DISABLE_SELECTIVE | 3 | Caching is enabled for all entities except those for which
Cacheable(false) is specified. Entities for which
Cacheable(false) is specified are not cached.
|
| UNSPECIFIED | 4 |
Caching behavior is undefined: provider-specific defaults may apply.
|