jZenith Logo

An opinionated approach to building modern Java Microservices

View project on GitHub

Redis Plugin


The Redis Plugin gives you

  • Vert.x Redis
  • FST for fast serialization

The Redis Plugin can be enabled by calling


Typical DAO implements look like

public class UserDaoImpl extends RedisDao<User> implements UserDao {

    public UserDaoImpl(FSTConfiguration configuration, RedisClient client) {
        super(configuration, client, User.class);

    public Single<User> save(@NonNull User user) {
        return set(user.getId().toString(), user)

Your bean should be Serializable, you should also subclass RedisDao for a couple of methods to load and store data.

Configuration properties

defined in RedisConfiguration

  • redis.port: The port PostgreSQL listens to
  • redis.host: The host to connect to
  • redis.encoding: The encoding to use for string values