spring-boot-mocker-redis
This is a spring-boot-starter. if you dependency a redis-server, Use it, you can run test case, But do not need a real redis-server. Run it for your test, ONLY !
spring-boot-mocker-redis
Using it, you can add the maven dependency :
<dependency>
<groupId>com.github.microwww</groupId>
<artifactId>mocker-redis-spring-boot-starter</artifactId>
<version>0.0.1</version>
</dependency>
You can set mocker.jedis.enable=false
to disable it, like any spring-boot project config.
The embedded redis server will listener spring.redis.port
port, and host is 0.0.0.0
, so you must set spring.redis.host
to match this host.
project dependency jedis-mocker
mocker redis code in github
<dependency>
<groupId>com.github.fppt</groupId>
<artifactId>jedis-mock</artifactId>
<version>0.1.16</version>
</dependency>
2.0.0 + with java redis server: jedis-mock
<dependency>
<groupId>com.github.microwww</groupId>
<artifactId>redis-server</artifactId>
<version>${jedis-mock.version}</version>
</dependency>