Package com.meetup.memcached

Examples of com.meetup.memcached.MemcachedClient


    pool.setMaxIdle(1000 * 60 * 60 * 6);
    pool.setHashingAlg(SockIOPool.NEW_COMPAT_HASH);
    pool.setFailover(true);

    pool.initialize();
    client = new MemcachedClient(poolName);
    client.setPrimitiveAsString(false);
    client.setCompressEnable(true);
    client.setSanitizeKeys(true);
    Logger.getLogger(MemcachedClient.class.getName()).setLevel(Logger.LEVEL_WARN);
  }
View Full Code Here


          pool.setMaxConn( 250 );
          pool.setNagle( false );
          pool.setHashingAlg( SockIOPool.CONSISTENT_HASH );
          pool.initialize();

          mc = new MemcachedClient( "test" );
          mc.flushAll();
          runAlTests( mc );
        } finally {
          pool.shutDown();
        }
View Full Code Here

    private MemcachedClient _client;

    private synchronized MemcachedClient client() {
        if (_client == null) {
            _client = new MemcachedClient();
            _client.setCompressEnable(false);
            _client.setCompressThreshold(0);
        }
        return _client;
    }
View Full Code Here

TOP

Related Classes of com.meetup.memcached.MemcachedClient

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.