Package net.sf.jsr107cache

Examples of net.sf.jsr107cache.CacheManager


   */
  private StatisticsManager(){
    Map<String, String> props = new HashMap<String, String>();
    props.put(GCacheFactory.NAMESPACE, C_NAMESPACE);
//    props.put(GCacheFactory.EXPIRATION_DELTA, C_TIMEOUT);
    CacheManager cMan = CacheManager.getInstance();
    props.put("name", C_NAME);
    try{
      CacheFactory cFac = cMan.getCacheFactory();
      Cache cache = cFac.createCache(props);
      cMan.registerCache(C_NAME, cache);
      cache.put(C_KEY_RESULTS, new Results());
      cache.put(C_KEY_SUMMARY, retrieveSummary());
    }catch(CacheException e){
     
    }
View Full Code Here

TOP

Related Classes of net.sf.jsr107cache.CacheManager

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.