NPersistence Reference Guide
Specifies how the provider must use a second-level cache for the persistence unit.

Corresponds to the value of the persistence.xmlshared-cache-mode element, and returned as the result of GetSharedCacheMode()()()().

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public enum SharedCacheMode

Members

MemberValueDescription
ALL0
All entities and entity-related state and data are cached.
NONE1
Caching is disabled for the persistence unit.
ENABLE_SELECTIVE2
Caching is enabled for all entities for Cacheable(true) is specified. All other entities are not cached.
DISABLE_SELECTIVE3
Caching is enabled for all entities except those for which Cacheable(false) is specified. Entities for which Cacheable(false) is specified are not cached.
UNSPECIFIED4
Caching behavior is undefined: provider-specific defaults may apply.

See Also