A lightweight Jedis wrapper that simplifies Redis connections and adds server-to-server messaging through Pub/Sub channels. Messages are serialized with Gson, allowing each channel to work with typed Java objects.
- Encapsulation of Redis clients and connection pools.
- Server-to-server communication through Pub/Sub.
- Generic serialization and deserialization with Gson.
- A small API designed for Bukkit plugin integrations.
Java 8 Maven Jedis Redis Gson Bukkit API
JedisBuilder jedis = JedisBuilder.builder()
.setHost("localhost")
.setPort(6379);
Redis redis = Redis.builder(plugin)
.jedis(jedis)
.build();
Channel<MyMessage> channel = redis.messenger()
.getChannel("events", MyMessage.class);
channel.sendMessage(new MyMessage("hello"));Listeners are registered with ChannelListener. The channel automatically converts objects to JSON when sending and reconstructs them when receiving.
Requirements: Java 8 and Maven.
mvn clean packageThe artifact is generated in target/. To use it in a Bukkit plugin, add the JAR and configure a Redis instance accessible by the participating servers.
This library focuses on Bukkit/Spigot and Redis integrations. It is not intended to replace a general-purpose Redis client or manage server infrastructure.