Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static Cache |
getCache(Config config,
String cacheName) |
static Cache |
getCache(Config config,
String cacheName,
Cache defaultValue) |
static Cache |
getCache(PageContext pc,
String cacheName,
int type) |
static Cache |
getCache(PageContext pc,
String cacheName,
int type,
Cache defaultValue) |
static CacheConnection |
getCacheConnection(Config config,
String cacheName) |
static CacheConnection |
getCacheConnection(Config config,
String cacheName,
CacheConnection defaultValue) |
static Cache |
getDefault(PageContext pc,
int type)
get the default cache for a certain type, also check definitions in application context (application.cfc/cfapplication)
|
static Cache |
getDefault(PageContext pc,
int type,
Cache defaultValue)
get the default cache for a certain type, also check definitions in application context (application.cfc/cfapplication)
|
static String |
key(String key) |
static void |
remove(ConfigWeb config,
CacheConnection cc) |
static boolean |
removeEL(ConfigWeb config,
CacheConnection cc) |
static String |
toType(int type,
String defaultValue) |
static int |
toType(String type,
int defaultValue) |
public Util()
public static Cache getDefault(PageContext pc, int type, Cache defaultValue)
pc
- current PageContexttype
- default type -> Config.CACHE_DEFAULT_...defaultValue
- value returned when there is no default cache for this typepublic static Cache getDefault(PageContext pc, int type) throws IOException
pc
- current PageContexttype
- default type -> Config.CACHE_DEFAULT_...IOException
public static Cache getCache(PageContext pc, String cacheName, int type) throws IOException
IOException
public static Cache getCache(PageContext pc, String cacheName, int type, Cache defaultValue)
public static Cache getCache(Config config, String cacheName) throws IOException
IOException
public static CacheConnection getCacheConnection(Config config, String cacheName) throws IOException
IOException
public static CacheConnection getCacheConnection(Config config, String cacheName, CacheConnection defaultValue)
public static boolean removeEL(ConfigWeb config, CacheConnection cc)
public static void remove(ConfigWeb config, CacheConnection cc) throws Throwable
Throwable
Copyright © 2015 Lucee