NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Interface used to interact with the second-level cache.
If a cache is not in use, the methods of this interface have
no effect, except for contains, which returns false.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public interface Cache
Members
All Members | Methods ![]() |
![]() ![]() | ![]() ![]() ![]() | ![]() ![]() | ![]() ![]() ![]() ![]() |
Member | Description | |
---|---|---|
![]() | Contains(Type, Object) | Whether the cache contains data for the given entity.
entity class primary key Return Valueboolean indicating whether the entity is in the cache |
![]() | Evict(Type) | Remove the data for entities of the specified class (and its
subclasses) from the cache.
entity class |
![]() | Evict(Type, Object) | Remove the data for the given entity from the cache.
entity class primary key |
![]() | EvictAll()()()() | Clear the cache.
|