Package com.meetup.memcached

Examples of com.meetup.memcached.SockIOPool.initialize()


    // default to 6 hours
    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.setServers( serverlist );
          pool.setWeights( weights );
          pool.setMaxConn( 250 );
          pool.setNagle( false );
          pool.setHashingAlg( SockIOPool.CONSISTENT_HASH );
          pool.initialize();

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

        pool.setMinConn(ERXProperties.intForKeyWithDefault("er.caching.minConnections", 5));
        pool.setMaxConn(ERXProperties.intForKeyWithDefault("er.caching.maxConnections", 50));
        pool.setMaintSleep(ERXProperties.intForKeyWithDefault("er.caching.sleepTime", 30));

        pool.setNagle(ERXProperties.booleanForKeyWithDefault("er.caching.useNagle", false));
        pool.initialize();
  }

  public static void startServer() {
    try {
        int port = ERXProperties.intForKeyWithDefault("er.caching.server.port", 0);
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.