<CACHE> : Memory management of the data

Java class : leon.info.LyInfoCache

ROLE

Objects of a class are managed inside the memory of the application with a cache. It's possible to use either a generic cache (FULL, AUTO, NO), or a specific one by giving its own implementation.

ATTRIBUTES

<!ATTLIST CACHE
	  type ( FULL | AUTO | NO) "FULL"
	  javaName CDATA #IMPLIED
	  userData CDATA #IMPLIED>
Attribute Mand. Description Default
type no This attribute is used to specify which type of generic cache is used. Three types of cache are supported. the full cache ('FULL') loads the whole existing data inside the memory of the application. the automatic cache ('AUTO') automatically loads data inside the memory of the application when it is needed during a session when no cache is defined ('NO'), each access to a logical object forces the reload of the corresponding data. The default one is FULL. FULL
javaName no If needed, it's possible to provide its own cache policy by filling this attribute with the full name of the java class that implements the specific cache. This class must inherit from the standard Application Engine class, leon.data.LyCache.  
userData no The userData attribute can be used to give some extra parameters to the specific cache (number of managed objects, refreshing rate, name of the local cache...). This attribute is unused for generic caches.