class RedisServerRepository implements ServerRepository {

    @Override
    public <T extends Server> void addServer(T server, ServerMapper<T> mapper) {
        redisTransactions.runTransaction(jedis -> {
            jedis.hmset(this.redisHashName(server.getName()), mapper.serialize(server));
        });
    }

}