Package redis.embedded
Class RedisServer
java.lang.Object
redis.embedded.RedisServer
- All Implemented Interfaces:
Redis
public class RedisServer extends Object
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_REDIS_PORT
static Pattern
SERVER_READY_PATTERN
-
Constructor Summary
Constructors Constructor Description RedisServer()
RedisServer(int port)
RedisServer(int port, File executable)
RedisServer(int port, RedisExecProvider redisExecProvider)
-
Method Summary
Modifier and Type Method Description boolean
isActive()
static RedisServerBuilder
newRedisServer()
List<Integer>
ports()
void
start()
void
stop()
-
Field Details
-
DEFAULT_REDIS_PORT
public static final int DEFAULT_REDIS_PORT- See Also:
- Constant Field Values
-
SERVER_READY_PATTERN
-
-
Constructor Details
-
RedisServer
public RedisServer() -
RedisServer
public RedisServer(int port) -
RedisServer
-
RedisServer
- Throws:
IOException
-
-
Method Details
-
newRedisServer
-
start
- Specified by:
start
in interfaceRedis
- Throws:
IOException
-
stop
- Specified by:
stop
in interfaceRedis
- Throws:
IOException
-
isActive
public boolean isActive() -
ports
-