Vertx Redis Library

Library for accessing Redis from Vert.x applications

License

License

Categories

Categories

Redis Data Databases
GroupId

GroupId

com.groupon.vertx
ArtifactId

ArtifactId

vertx-redis
Last Version

Last Version

3.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Vertx Redis Library
Library for accessing Redis from Vert.x applications
Project URL

Project URL

https://github.com/groupon/vertx-redis
Source Code Management

Source Code Management

https://github.com/groupon/vertx-redis

Download vertx-redis

How to add to project

<!-- https://jarcasting.com/artifacts/com.groupon.vertx/vertx-redis/ -->
<dependency>
    <groupId>com.groupon.vertx</groupId>
    <artifactId>vertx-redis</artifactId>
    <version>3.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.groupon.vertx/vertx-redis/
implementation 'com.groupon.vertx:vertx-redis:3.1.1'
// https://jarcasting.com/artifacts/com.groupon.vertx/vertx-redis/
implementation ("com.groupon.vertx:vertx-redis:3.1.1")
'com.groupon.vertx:vertx-redis:jar:3.1.1'
<dependency org="com.groupon.vertx" name="vertx-redis" rev="3.1.1">
  <artifact name="vertx-redis" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.groupon.vertx', module='vertx-redis', version='3.1.1')
)
libraryDependencies += "com.groupon.vertx" % "vertx-redis" % "3.1.1"
[com.groupon.vertx/vertx-redis "3.1.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.9.10.1
io.netty : netty-buffer jar 4.1.15.Final
io.netty : netty-codec-http jar 4.1.15.Final

provided (2)

Group / Artifact Type Version
io.vertx : vertx-core jar 3.5.4
com.groupon.vertx : vertx-utils jar 3.5.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.13
org.mockito : mockito-core jar 3.2.4
org.hamcrest : hamcrest-core jar 1.3

Project Modules

There are no modules declared in this project.

vert.x-redis

License: Apache 2 Travis Build Maven Artifact

This is an async library for sending commands to Redis.

Usage

Configuration for Redis Verticle:

{
    "redisConfig": {
        "host": "some-redis-server",
        "port": 6379,
        "eventBusAddress": "address_where_redis_handler_is_registered"
    }
}

Setting up a client and calling a simple get:

    RedisClient redisClient = new RedisClient(eventBus, "addresss_where_redis_handler_is_registered", timeout);
    Future<JsonObject> result = redisClient.get("key");

The JsonObject in the future result will be in a Jsend format. In the case of the get call above it will be similar to:

{
    "status": "success",
    "data": {
        "key": "value"
    }
}

Results in the data block will vary based on the Redis method being called.

Building

Prerequisites:

Building:

vertx-redis> mvn verify

To use the local version you must first install it locally:

vertx-redis> mvn install

You can determine the version of the local build from the pom file. Using the local version is intended only for testing or development.

License

Published under Apache Software License 2.0, see LICENSE

© Groupon Inc., 2014

com.groupon.vertx

Groupon

Versions

Version
3.1.1
3.1.0
3.0.1