• Hallo zusammen,


    ich möchte einen Redis PubSub machen.


    Code
    private final void jedis() {
            this.jedis = this.pool.getResource();
            try {
                this.jedis.auth(this.manager.getConfig().getCfg().getString("Redis.Password"));
                this.jedis.connect();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    Java
    public void sendMessage(String channel, String message) {
            try {
                jedis.publish(channel, message);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }