Cache Component Documentation
The cache component, what is it ?
The cache component permits a cache manager of java objects. Each cached
object must have an identifier. The object and its identifier composes a
CacheEntry. The cache manager has the following functionalities:
- Replacement policy: The replacement policy is reponsible
of the choice of object to evicted from the cache when space is required.
The current implementation provides 3 possibles policy: LRU, MRU, FIFO.
To choose the replacement you have to reconfigure the composite
component by replacing the default replacement manager (LRU) by
another replacement manager.
- Background ascynchronous cleaning: When a cache size
reaches a threshold, defined by the user, a thread is activated in
background in order to free space into the cache.
The cache manager attribute is the following:
- Max Size: The maximal size of the cache in term of object
- Memory Max Size: The maximal size of the cache in term of
memory foot print (Not yet supported/implemented).
- Auto Clean Size: The number of element which can be removed
when the cache is full or when the background cleaner run. This value
can be an absolute value( ex: "124") or a percent of the maximal
cache size ("8%").
- Auto Clean Threshold: The cache size value since the cache
try to decrease the number of entries. This value can be an absolute
value( ex: "124") or a percent of the maximal cache size ("80%").
The architecture overview of the Cache composite component is the