railo.runtime.functions.cache
Class Util
java.lang.Object
railo.runtime.functions.cache.Util
public class Util
- extends Object
Constructor Summary |
Util()
|
Method Summary |
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)
|
Util
public Util()
getDefault
public 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)
- Parameters:
pc
- current PageContexttype
- default type -> Config.CACHE_DEFAULT_...defaultValue
- value returned when there is no default cache for this type
- Returns:
- matching cache
getDefault
public static Cache getDefault(PageContext pc,
int type)
throws IOException
- get the default cache for a certain type, also check definitions in application context (application.cfc/cfapplication)
- Parameters:
pc
- current PageContexttype
- default type -> Config.CACHE_DEFAULT_...
- Returns:
- matching cache
- Throws:
IOException
getCache
public static Cache getCache(PageContext pc,
String cacheName,
int type)
throws IOException
- Throws:
IOException
getCache
public static Cache getCache(PageContext pc,
String cacheName,
int type,
Cache defaultValue)
getCache
public static Cache getCache(Config config,
String cacheName)
throws IOException
- Throws:
IOException
getCache
public static Cache getCache(Config config,
String cacheName,
Cache defaultValue)
getCacheConnection
public static CacheConnection getCacheConnection(Config config,
String cacheName)
throws IOException
- Throws:
IOException
getCacheConnection
public static CacheConnection getCacheConnection(Config config,
String cacheName,
CacheConnection defaultValue)
key
public static String key(String key)
removeEL
public static boolean removeEL(ConfigWeb config,
CacheConnection cc)
remove
public static void remove(ConfigWeb config,
CacheConnection cc)
throws Throwable
- Throws:
Throwable
toType
public static int toType(String type,
int defaultValue)
toType
public static String toType(int type,
String defaultValue)
Copyright © 2012 Railo