Package lazyj
Class PageCache
java.lang.Object
lazyj.cache.ExpirationCache<String,CachingStructure>
 
lazyj.PageCache
- All Implemented Interfaces:
- lazyj.cache.CacheElement<String,- CachingStructure> 
This is the page cache.
- Since:
- 2006-10-04
- Author:
- costing
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcallbackOnExpiry(String key, CachingStructure cs) Cleanup thread, takes an entry that has expired, removes it from the cache and checks if it deserves a bonus.static voidclear()Clear all the cache structures (in case of major changes to the templates ...)static CachingStructureGet the contents generating the key on the fly from the request and the extra modifiersstatic List<CachingStructure>Get the entrire contents of the cache.static CachingStructureput(javax.servlet.http.HttpServletRequest request, String sCacheKeyModifier, byte[] vbContent, long lLifetime, String sContentType) Cache some arbitrary contentsMethods inherited from class lazyj.cache.ExpirationCacheget, getKeys, getRefreshTime, getValues, overwrite, put, refresh, remove, size
- 
Method Details- 
callbackOnExpiryCleanup thread, takes an entry that has expired, removes it from the cache and checks if it deserves a bonus.- Overrides:
- callbackOnExpiryin class- lazyj.cache.ExpirationCache<String,- CachingStructure> 
- Parameters:
- key- key that is removed
- cs- value for the key that is removed
 
- 
getCacheContentGet the entrire contents of the cache.- Returns:
- a List of CachingStructure objects that is the entire contents of the memory cache.
 
- 
getpublic static CachingStructure get(javax.servlet.http.HttpServletRequest request, String sCacheKeyModifier) Get the contents generating the key on the fly from the request and the extra modifiers- Parameters:
- request-
- sCacheKeyModifier-
- Returns:
- the structure, if exists, or null
 
- 
clearpublic static void clear()Clear all the cache structures (in case of major changes to the templates ...)- Since:
- 1.0.2
 
- 
putpublic static CachingStructure put(javax.servlet.http.HttpServletRequest request, String sCacheKeyModifier, byte[] vbContent, long lLifetime, String sContentType) Cache some arbitrary contents- Parameters:
- request- incoming request
- sCacheKeyModifier-
- vbContent-
- lLifetime-
- sContentType-
- Returns:
- the newly created structure
 
 
-