Examples of Cache


Examples of com.spaceprogram.simplejpa.cache.Cache

    public <T> T cacheGet(Class<T> aClass, Object id) {
        String key = cacheKey(aClass, id);
        logger.finest("getting item from cache with cachekey=" + key);
        T o = sessionCache != null ? (T) sessionCache.get(key) : null;
        if (o == null) {
            Cache c = getFactory().getCache(aClass);
            if (c != null) {
                o = (T) c.getObj(id);
                if (o != null) {
                    logger.finest("Got item from second level cache!");
                    replaceEntityManager(o, this);
                }
            }

Examples of com.spidercache.cache.Cache

  /**
   * Initializes the caching service.
   * @return True on success, false on failure.
   */
  public boolean cacheServiceStart(){
    cache = new Cache((long)2<<35, cachepath);
    IntermediateHttpClient HTTPClient = new IntermediateHttpClient();
    CacheCon  = new ThreadSafeClientConnManager();
    config = new CacheConfig();
    config.setSharedCache(true);
    config.setMaxObjectSizeBytes(2<<31);

Examples of com.sun.appserv.util.cache.Cache

        // use the context class loader to load class so that any
        // user-defined classes in WEB-INF can also be loaded.
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        Class cacheClass = cl.loadClass(className);

        Cache cacheImpl = (Cache)cacheClass.newInstance();
        cacheImpl.init(maxEntries, cacheProps);

        return cacheImpl;
    }

Examples of com.sun.enterprise.deployment.runtime.web.Cache

        MessageDestinationRefNode.writeMessageDestinationReferences(web,
            bundleDescriptor);

 
  // cache?
  Cache cache = sunWebApp.getCache();
  if (cache!=null) {
      CacheNode cn = new CacheNode();
      cn.writeDescriptor(web, RuntimeTagNames.CACHE, cache);
  }
 

Examples of com.thimbleware.jmemcached.Cache

    logger.info("Initializing JMemcached Daemon");

    LRUCacheStorageDelegate cacheStorage = new LRUCacheStorageDelegate(maxItems, maxBytes, ceilingSize);

    jmemcached = new MemCacheDaemon();
    jmemcached.setCache(new Cache(cacheStorage));
    jmemcached.setAddr(AddrUtil.getAddresses(serverUrl).get(0));
    jmemcached.setBinary(false);
    jmemcached.start();
    logger.info("Initialized JMemcached Daemon");
  }

Examples of com.volantis.cache.Cache

            urlContentCacheConfiguration =
                new URLContentCacheConfiguration(configuration);
            configuration.storeConfiguration(URLContentCacheConfiguration.class,
                urlContentCacheConfiguration);
        }
        final Cache cache = urlContentCacheConfiguration.getCache();

        final URLContentManagerConfiguration managerConfig =
            new URLContentManagerConfiguration();
        managerConfig.setDefaultTimeout(timeout);
        managerConfig.setCache(cache);

Examples of com.volantis.mcs.cache.Cache

        //
        // We need to initialise the cache and get the one and hopefully only
        // instance of it.
        //
        Cache cache = volantis.getCSSCache();

        //
        // Store our WritableCSSEntityMock in the cache and get the identity
        // that can be used to retrieve the entry.
        //
        CacheIdentity identity = cache.store(
                new CSSCacheEntry(writableCSSEntityMock));


        //
        // EXPECTATIONS

Examples of de.innovationgate.utils.cache.Cache

        if (getType() == WGDocument.TYPE_FILECONTAINER && _manager.isStrictFCDateDetermination()) {
            lastModified = determineFileContainerLastModified();
        }
       
        // Check the cache
        Cache cache = _manager.getCore().getDesignFileCache();
       
        // We need to include the reference of the current provider here bc. the codefile path itself may be not full-qualified
        // (for example when it reflects the path inside a ZIP file)
        String cacheKey = _manager.getDesignReference() + "/" + getCodeFile().getName().getPath();
      
        try {
            Data cacheData = (Data) cache.readEntry(cacheKey);
            if (cacheData != null && cacheData.getLastModified() >= lastModified && cacheData.isMdFileExists() == mdFile.exists() && cacheData.getEncoding().equals(_manager.getFileEncoding())) {
                _data = cacheData;
                return cacheData;
            }
        }
        catch (CacheException e) {
            _manager.getLog().error("Exception checking design cache", e);
        }
       
        // Build a new data object and put it to cache
        DesignMetadata metadata = (DesignMetadata) readMetaData();
        String code = readCode(metadata);
        _data = new Data(metadata, code, lastModified, _manager.getFileEncoding(), mdFile.exists());
       
        try {
            cache.writeEntry(cacheKey, _data);       
        }
        catch (CacheException e) {
            _manager.getLog().error("Exception writing design cache", e);
        }
       

Examples of de.odysseus.el.tree.impl.Cache

        cacheSize = Integer.parseInt(properties.getProperty("javax.el.cacheSize"));
      } catch (NumberFormatException e) {
        throw new ELException("Cannot parse EL property javax.el.cacheSize", e);
      }
    }
    Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null;

    return new TreeStore(builder, cache);
  }

Examples of dk.brics.jwig.server.cache.Cache

            response.setHeader("Connection", "close");
            response.setContentLength(0);
            response.getOutputStream().close();
            return true;
          }
          Cache cache = ThreadContext.getCache();
          StringBuilder updates = new StringBuilder();
          for (int i = 0; i < fragmentnames.length; i++) {
            String name = fragmentnames[i];
            String etag = etags[i];
            Response p = cache.get(name);
            if (p == null || !etag.equals("\"" + p.getETag() + "\""))
              updates.append(name).append(';');
          }
          if (updates.length() > 0) {
            String u = updates.toString();
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.