NPersistence Reference Guide
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: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: (


public interface Cache


 All Members  Methods  



 XNA Framework Only 

 .NET Compact Framework Only 

Contains(Type, Object)
Whether the cache contains data for the given entity. entity class primary key

Return Value

boolean indicating whether the entity is in the cache
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
Clear the cache.

See Also