Skip to content
This repository was archived by the owner on Feb 23, 2022. It is now read-only.

microwww/spring-boot-mocker-redis

Repository files navigation

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 !

This is move to redis-mock

!!!!!!!! This is move to redis-mock !!!!!!!

!!!!!!!! This is move to redis-mock !!!!!!!

!!!!!!!! This is move to redis-mock !!!!!!!

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>5.3.0</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.

All version

ALL version to see maven repository

Dependency

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 , Last version is v0.3.0

<dependency>
	<groupId>com.github.microwww</groupId>
	<artifactId>redis-server</artifactId>
	<version>${jedis-mock.version}</version>
</dependency>