Package org.jredis.ri.alphazero

Examples of org.jredis.ri.alphazero.JRedisService


      }
    }

    if (usePool) {
      int size = getPoolSize();
      pool = new JRedisService(connectionSpec, size);
    }
  }
View Full Code Here


    int opsCnt = 100000;
   
    // create the service -- well this is it as far as usage goes:  set the number of connections for the service pool
    // You can use this anywhere you would use JRedis instances and it is thread safe.
    //
    service = new JRedisService(connectionSpec, connCnt);
   
    // create a bunch of dummy users for the service
    Thread[] users = new Thread[userCnt];
    for(int i=0; i<userCnt; i++){
      users[i] = getDummyUser(i, opsCnt);
View Full Code Here

  }
 
  final JRedis jredisService;
    public JRedisServiceBenchmark (int poolCnt, String host, int port, int db, String password) {
    ConnectionSpec connectionSpec = DefaultConnectionSpec.newSpec("localhost", 6379, db, "jredis".getBytes());
    jredisService = new JRedisService(connectionSpec, poolCnt);
    super.quitOnRunEnd(false);
    }
View Full Code Here

TOP

Related Classes of org.jredis.ri.alphazero.JRedisService

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.