public interface QueryCache
Modifier and Type | Method and Description |
---|---|
void |
clear(PageContext pc)
clear the cache
|
void |
clear(PageContext pc,
QueryCacheFilter filter)
clear the cache
|
void |
clearUnused(PageContext pc)
clear expired queries from cache
|
Object |
get(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Date cachedafter) |
Query |
getQuery(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Date cacheAfter)
returns a Query from Query Cache or null if no match found
|
void |
remove(PageContext pc,
SQL sql,
String datasource,
String username,
String password)
removes query from cache
|
void |
set(PageContext pc,
SQL sql,
String datasource,
String username,
String password,
Object value,
Date cacheBefore)
sets a Query to Cache
|
int |
size(PageContext pc) |
void clearUnused(PageContext pc) throws IOException
IOException
Query getQuery(PageContext pc, SQL sql, String datasource, String username, String password, Date cacheAfter)
sql
- datasource
- username
- password
- cacheAfter
- void set(PageContext pc, SQL sql, String datasource, String username, String password, Object value, Date cacheBefore)
sql
- datasource
- username
- password
- value
- cacheBefore
- void clear(PageContext pc)
pc
- void clear(PageContext pc, QueryCacheFilter filter)
filter
- void remove(PageContext pc, SQL sql, String datasource, String username, String password)
pc
- sql
- datasource
- username
- password
- Object get(PageContext pc, SQL sql, String datasource, String username, String password, Date cachedafter)
int size(PageContext pc)
Copyright © 2016. All rights reserved.