public class CacheHandlerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static char |
CACHE_DEL |
static char |
CACHE_DEL2 |
static int |
TYPE_REQUEST |
static int |
TYPE_TIMESPAN |
Modifier and Type | Method and Description |
---|---|
void |
clean(PageContext pc) |
void |
clear(PageContext pc) |
void |
clear(PageContext pc,
CacheHandlerFilter filter) |
static String |
createId(PageSource[] sources) |
static String |
createId(SQL sql,
String datasource,
String username,
String password) |
static String |
createId(UDF udf,
Object[] args,
Struct values) |
CacheHandler |
getInstance(Config config,
int type) |
CacheHandler |
getInstance(Config config,
Object cachedWithin)
based on the cachedWithin Object we choose the right Cachehandler and return it
|
int |
size(PageContext pc) |
static CacheItem |
toCacheItem(Object value,
CacheItem defaultValue) |
static String |
toStringCacheName(int type,
String defaultValue) |
static String |
toStringType(int type,
String defaultValue) |
public static final int TYPE_TIMESPAN
public static final int TYPE_REQUEST
public static final char CACHE_DEL
public static final char CACHE_DEL2
public CacheHandler getInstance(Config config, Object cachedWithin)
public CacheHandler getInstance(Config config, int type)
public int size(PageContext pc) throws PageException
PageException
public void clear(PageContext pc) throws PageException
PageException
public void clear(PageContext pc, CacheHandlerFilter filter) throws PageException
PageException
public void clean(PageContext pc) throws PageException
PageException
public static String createId(PageSource[] sources) throws PageException
PageException
public static String createId(SQL sql, String datasource, String username, String password) throws PageException
PageException
public static String toStringType(int type, String defaultValue)
public static String toStringCacheName(int type, String defaultValue)
public static CacheItem toCacheItem(Object value, CacheItem defaultValue)
Copyright © 2015 Lucee