Package com.thimbleware.jmemcached

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

TOP

Related Classes of com.thimbleware.jmemcached.LRUCacheStorageDelegate

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.