Examples of CacheItem


Examples of com.caucho.management.server.CacheItem

      String uri = inv.getURI();
      int p = uri.indexOf('?');
      if (p >= 0)
        uri = uri.substring(0, p);

      CacheItem item = itemMap.get(uri);

      if (item == null) {
        item = new CacheItem();
        item.setUrl(uri);

        itemMap.put(uri, item);
      }
    }
View Full Code Here

Examples of com.caucho.management.server.CacheItem

      String uri = inv.getURI();
      int p = uri.indexOf('?');
      if (p >= 0)
        uri = uri.substring(0, p);

      CacheItem item = itemMap.get(uri);

      if (item == null) {
        item = new CacheItem();
        item.setUrl(uri);

        itemMap.put(uri, item);
      }
    }
View Full Code Here

Examples of com.xixibase.cache.CacheItem

    manager.initialize(serverlist);
   
    CacheClient cc = manager.createClient();
   
    cc.set("key", "value1");
    CacheItem item1 = cc.gets("key");
    System.out.println(item1.getValue());
   
    cc.set("key", "value2");
    CacheItem item2 = cc.gets("key");
    System.out.println(item2.getValue());

    cc.set("key", "value3", 0, item1.getCacheID());
    System.out.println(cc.get("key"));
   
    cc.set("key", "value4", 0, item2.getCacheID());
    System.out.println(cc.get("key"));

    cc.flush();
   
    manager.shutdown();
View Full Code Here

Examples of com.xixibase.cache.CacheItem

      List<CacheItem> cacheList = cc.multiGet(keys);
      if (cacheList != null) {
        Iterator<CacheItem> it = cacheList.iterator();
        int index = 0;
        while (it.hasNext()) {
          CacheItem item = it.next();
          map.put(keys.get(index++), (String)item.getValue());
        }
      } else {
        return null;
      }
    }
View Full Code Here

Examples of com.xixibase.cache.CacheItem

           
            byte[] buf = data.array();
            int[] objectSize = new int[1];
            try {
              Object obj = transCoder.decode(buf, flags, objectSize);
              CacheItem item = new CacheItem(
                  key,
                  cacheID,
                  expiration,
                  groupID,
                  flags,
View Full Code Here

Examples of railo.runtime.cache.legacy.CacheItem

            if(pageContext.getConfig().debug())pageContext.getDebugger().setOutput(false);
   
        HttpServletResponse rsp = pageContext.getHttpServletResponse();
       
        // generate cache resource matching request object
        CacheItem ci = generateCacheResource(null,false);
       
        // use cached resource
        if(ci.isValid(timespan)){ //if(isOK(cacheResource)){
          if(pageContext. getHttpServletResponse().isCommitted()) return;
         
          OutputStream os=null;
          try {
                ci.writeTo(os=getOutputStream(),ReqRspUtil.getCharacterEncoding(pageContext,rsp));
            //IOUtil.copy(is=cacheResource.getInputStream(),os=getOutputStream(),false,false);
            }
            finally {
                IOUtil.flushEL(os);
                IOUtil.closeEL(os);
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.