use of org.apache.geode.redis.GeodeRedisServer in project geode by apache.
the class AuthJUnitTest method setupCacheWithPassword.
private void setupCacheWithPassword() {
CacheFactory cf = new CacheFactory();
cf.set(LOG_LEVEL, "error");
cf.set(MCAST_PORT, "0");
cf.set(LOCATORS, "");
cf.set(ConfigurationProperties.REDIS_PASSWORD, PASSWORD);
cache = cf.create();
server = new GeodeRedisServer("localhost", port);
server.start();
}
use of org.apache.geode.redis.GeodeRedisServer in project geode by apache.
the class ListsJUnitTest method setUp.
@BeforeClass
public static void setUp() throws IOException {
rand = new Random();
CacheFactory cf = new CacheFactory();
// cf.set("log-file", "redis.log");
cf.set(LOG_LEVEL, "error");
cf.set(MCAST_PORT, "0");
cf.set(LOCATORS, "");
cache = cf.create();
port = AvailablePortHelper.getRandomAvailableTCPPort();
server = new GeodeRedisServer("localhost", port);
server.start();
jedis = new Jedis("localhost", port, 10000000);
}
use of org.apache.geode.redis.GeodeRedisServer in project geode by apache.
the class SortedSetsJUnitTest method setUp.
@BeforeClass
public static void setUp() throws IOException {
rand = new Random();
CacheFactory cf = new CacheFactory();
// cf.set("log-file", "redis.log");
cf.set(LOG_LEVEL, "error");
cf.set(MCAST_PORT, "0");
cf.set(LOCATORS, "");
cache = cf.create();
port = AvailablePortHelper.getRandomAvailableTCPPort();
server = new GeodeRedisServer("localhost", port);
server.start();
jedis = new Jedis("localhost", port, 10000000);
}
Aggregations