spring-boot-mocker-redis

This is a redis server mock for spring-boot

License

License

Categories

Categories

Spring Boot Container Microservices Redis Data Databases
GroupId

GroupId

com.github.microwww
ArtifactId

ArtifactId

mocker-redis-spring-boot-parent
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

pom
Description

Description

spring-boot-mocker-redis
This is a redis server mock for spring-boot
Project URL

Project URL

https://github.com/microwww/spring-boot-mocker-redis/
Source Code Management

Source Code Management

https://github.com/microwww/spring-boot-mocker-redis

Download mocker-redis-spring-boot-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.microwww/mocker-redis-spring-boot-parent/ -->
<dependency>
    <groupId>com.github.microwww</groupId>
    <artifactId>mocker-redis-spring-boot-parent</artifactId>
    <version>0.0.3</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.microwww/mocker-redis-spring-boot-parent/
implementation 'com.github.microwww:mocker-redis-spring-boot-parent:0.0.3'
// https://jarcasting.com/artifacts/com.github.microwww/mocker-redis-spring-boot-parent/
implementation ("com.github.microwww:mocker-redis-spring-boot-parent:0.0.3")
'com.github.microwww:mocker-redis-spring-boot-parent:pom:0.0.3'
<dependency org="com.github.microwww" name="mocker-redis-spring-boot-parent" rev="0.0.3">
  <artifact name="mocker-redis-spring-boot-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.microwww', module='mocker-redis-spring-boot-parent', version='0.0.3')
)
libraryDependencies += "com.github.microwww" % "mocker-redis-spring-boot-parent" % "0.0.3"
[com.github.microwww/mocker-redis-spring-boot-parent "0.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • mocker-redis-spring-boot-autoconfigure
  • mocker-redis-spring-boot-starter

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>

Versions

Version
0.0.3
0.0.1