Package org.richfaces.cache

Examples of org.richfaces.cache.CacheManager.createCache()


    public void init() {
        // create cache instance
        facesContext = FacesContext.getCurrentInstance();
        CacheManager cacheManager = new CacheManager();
        Map<?, ?> initParameterMap = facesContext.getExternalContext().getInitParameterMap();
        cache = cacheManager.createCache(facesContext, "test-cache", initParameterMap);
        // insert value into cache and put it into cacheValue for later retrieval
        cache.put("x", "value-x", null);
        cacheValue = cache.get("x").toString();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.