private boolean isRedisAlive() {
            UnifiedJedis jedis = this.messenger.jedis;

            if (jedis instanceof JedisPooled) {
                return !((JedisPooled) jedis).getPool().isClosed();
            } else if (jedis instanceof JedisCluster) {
                return !((JedisCluster) jedis).getClusterNodes().isEmpty();
            } else {
                throw new RuntimeException("Unknown jedis type: " + jedis.getClass().getName());
            }
        }
An implementation of {@link Messenger} using Redis.
common/src/main/java/me/lucko/luckperms/common/messaging/redis/RedisMessenger.java