|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface scancacheInterface
File cache system interface.
System for caching texts (it stores and retrieves strings) by use of a key.
While in theory it is possible to cache ANY text, this is mainly used to store pages
based on their url.
Caching is done in pools. Each pool has its own memory cache and files, and has
different ways to handle file caching.
| Method Summary | |
|---|---|
String |
get(String pool,
String key,
scanpage sp)
Retrieve a file from the indicated pool's cache. |
String |
get(String pool,
String key,
String line,
scanpage sp)
Retrieve a file from the indicated pool's cache. |
long |
getExpireDate(String poolName,
String key,
String expireStr)
getExpireDate. |
long |
getLastModDate(String poolName,
String key)
getLastModDate. |
void |
init()
Initializes the module. |
String |
newput(String pool,
HttpServletResponse res,
String key,
String value,
String mimeType)
Store a file in the indicated pool's cache. |
String |
newput2(String pool,
String key,
String value,
int cachetype,
String mimeType)
Deprecated. Temporary hack for solving asis problems (?). Use newput(String, HttpServletResponse, String, String, String) instead. |
String |
put(String pool,
String key,
String value)
Store a file in the indicated pool's cache. |
void |
remove(String poolName,
String key)
Removes an entry from the cache pool. |
| Method Detail |
|---|
void init()
String get(String pool,
String key,
scanpage sp)
pool - name of the cache poolkey - key under which the content was cached
null if no entry was found
(i.e. cache was empty or poolname was invalid).
String get(String pool,
String key,
String line,
scanpage sp)
pool - name of the cache poolkey - key under which the content was cachedline - options for retrieving, such as an expiration value
null if no entry was found
(i.e. cache was empty or poolname was invalid).
long getExpireDate(String poolName,
String key,
String expireStr)
poolName - key - expireStr -
long getLastModDate(String poolName,
String key)
poolName - key -
String put(String pool,
String key,
String value)
pool - name of the cache poolkey - key under which the content was cachedvalue - content to store
null if no entry was found
String newput(String pool,
HttpServletResponse res,
String key,
String value,
String mimeType)
pool - name of the cache poolres - response object for retrieving headers (used by mmbase.org?)key - key under which the content was cachedvalue - content to storemimeType - the content's mime type
null if no entry was found
String newput2(String pool,
String key,
String value,
int cachetype,
String mimeType)
newput(String, HttpServletResponse, String, String, String) instead.
pool - name of the cache poolkey - key under which the content was cachedvalue - content to storecachetype - only needed for cachepool "PAGE".
If 0, no file transfer is performed. Otherwise the NetFileSrv builder is
invoked to start the VWM that handles the transfer.mimeType - the page's mime type, only needed for cachepool "PAGE"
null if no entry was found
void remove(String poolName,
String key)
poolName - name of cache poolkey - key of the content to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||