Examples of LRUCacheStorageDelegate


Examples of com.thimbleware.jmemcached.LRUCacheStorageDelegate

        int port = ERXProperties.intForKeyWithDefault("er.caching.server.port", 0);
        if(port > 0) {
            int maxItems = ERXProperties.intForKeyWithDefault("er.caching.server.maxItems", 0);
            int maxMemory = ERXProperties.intForKeyWithDefault("er.caching.server.maxMemory", 128);
          MemCacheDaemon daemon = new MemCacheDaemon();
          LRUCacheStorageDelegate cacheStorage = new LRUCacheStorageDelegate(maxItems, maxMemory * 1024*1024, 0);
          daemon.setCache(new Cache(cacheStorage));
         
          String host = ERXProperties.stringForKeyWithDefault("er.caching.server.host", WOApplication.application().host());
        daemon.setAddr(new InetSocketAddress(host, port));
          daemon.setIdleTime(50);
View Full Code Here

Examples of com.thimbleware.jmemcached.storage.hash.LRUCacheStorageDelegate

  @PostConstruct
  public void start() throws Exception {

    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);
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.