Skip to content

CacheService

Rogiel edited this page Aug 3, 2011 · 1 revision

This service provides data caching. Caches can must assure an minimum number of entries, but this does not mean it is limited to that certain amount.

This service can provide an an transparent Cache system. It proxies any interface implementing Cacheable. Once the first call is done through the proxy, the result is cached in the underlying cache engine. When the second and next calls are made the cache is looked up, if a match (method and arguments pair) is found, this result is returned.

If you do not desire to cache an method, annotate it with IgnoreCaching.

Some caches can erase contents after a while, if you do not wish that (i.e. ID caches) you can use EternalCache that will make content cached persistent. Even in a situation of low memory, data is NOT erased.

Official implementations

Clone this wiki locally