Examples of createCache()


Examples of com.google.appengine.api.memcache.stdimpl.GCacheFactory.createCache()

  public static String getMemData(String strJID, String strProperty)
  {
    GCache cache;
    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      if(!cache.isEmpty())
      {
        if(cache.containsKey(strJID + "," + strProperty))
        {
          String value;
View Full Code Here

Examples of com.projity.pm.graphic.frames.DocumentFrame.createCache()

    if (assignmentSpreadSheet==null) return;
        DocumentFrame df=evt.getCurrent();
        if (df!=null){
//          List impls=df.getSelectedImpls();
//          if (impls!=null&&impls.size()>0) setObject(impls.get(0));
          NodeModelCache cache = df.createCache(false,Messages.getString("View.TaskInformation.Assignments")); //$NON-NLS-1$
      assignmentSpreadSheet.setCache(cache);
        }
  }
 
 
View Full Code Here

Examples of com.sun.appserv.web.cache.CacheManager.createCache()

        if (cm == null)
            cm = new CacheManager();

        Cache cache = null;
        try {
            cache = cm.createCache();
        } catch (Exception ex) {}

        // set the cache as a context attribute
        if (cache != null)
            context.setAttribute(Constants.JSPTAG_CACHE_KEY, cache);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.cache.CacheProcessConfiguration.createCache()

        final XMLPipeline pipeline =
            new XMLPipelineProcessImpl(pipelineContextMock);

        final CacheProcessConfiguration cacheProcessConfig =
            new CacheProcessConfiguration();
        cacheProcessConfig.createCache("cacheName", "100", "50");

        // initialize the process
        process = new CacheBodyOperationProcess();
        cache = cacheProcessConfig.getCache("cacheName");
        process.setCache(cache);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.cache.CacheProcessConfiguration.createCache()

        CacheKey cacheKey = new CacheKey();
        cacheKey.addKey(key);

        final CacheProcessConfiguration cpc = new CacheProcessConfiguration();
        final String cacheName = "cache";
        cpc.createCache(cacheName, "10", "0");

        final Cache cache = cpc.getCache("cache");

        AsyncResult async = cache.asyncQuery(cacheKey, Period.inSeconds(30));
View Full Code Here

Examples of javax.cache.CacheFactory.createCache()

    try {
      @SuppressWarnings("rawtypes")
      Map props = new HashMap();
      props.put(GCacheFactory.EXPIRATION_DELTA, 3600*24); // cache expires in one day
      CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
      cache = cacheFactory.createCache(props);
    } catch (CacheException e) {
      log.severe("Error initialising station storage. Cache is not used!: " + e.toString());
    }
  }

View Full Code Here

Examples of javax.cache.CacheFactory.createCache()

    try {
      @SuppressWarnings("rawtypes")
      Map props = new HashMap();
      props.put(GCacheFactory.EXPIRATION_DELTA, 3600*24); // cache expires in one day
      CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
      cache = cacheFactory.createCache(props);
    } catch (CacheException e) {
      log.severe("Error initialising station storage. Cache is not used!: " + e.toString());
    }
  }

View Full Code Here

Examples of javax.cache.CacheManager.createCache()

      final String name = getName(m);
      withCachingProvider(new JCacheRunnable() {
         @Override
         public void run(CachingProvider provider) {
            CacheManager cm = provider.getCacheManager();
            Cache<String, List<Integer>> cache = cm.createCache(name, jcacheCfg);
            List<Integer> list = new ArrayList<Integer>(Arrays.asList(1, 2, 3));
            final String query = "select * from x";
            cache.put(query, list);
            try {
               cache.invoke(query,
View Full Code Here

Examples of net.sf.jsr107cache.CacheFactory.createCache()

//    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

Examples of net.sf.jsr107cache.CacheFactory.createCache()

    Map props = new HashMap();
        props.put(GCacheFactory.EXPIRATION_DELTA, 604800);
   
        try {
            CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
            cache = cacheFactory.createCache(Collections.emptyMap());
        } catch (CacheException e) {  }
  }
 
  public void put(String format, Weekplan weekplan) {
    ByteArrayOutputStream os = new ByteArrayOutputStream();
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.