Package org.apache.jcs.access.exception

Examples of org.apache.jcs.access.exception.CacheException


     * @return object Corresponding cached object. Null if not found.
     * @throws CacheException: thrown if the cache instance is found to be null
     */
    public static Object getFromCache(JCS cache, String key) throws CacheException {
        if (cache == null)
            throw new CacheException("Null cache");
        return cache.get(key);
    }
View Full Code Here


     * @param cache Cache instance to be cleared
     * @throws CacheException
     */
    public static void clearCache(JCS cache) throws CacheException {
        if (cache == null)
            throw new CacheException("Null cache");
        cache.clear();
    }
View Full Code Here

TOP

Related Classes of org.apache.jcs.access.exception.CacheException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.