public interface scancacheInterface
| Modifier and Type | Method and Description |
|---|---|
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,
javax.servlet.http.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.
|
void init()
String get(String pool, String key, scanpage sp)
pool - name of the cache poolkey - key under which the content was cachednull 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 valuenull 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 storenull if no entry was foundString newput(String pool, javax.servlet.http.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 typenull if no entry was foundString 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 foundMMBase 1.9-SNAPSHOT - ${javadoctimestamp}