Search in sources :

Example 1 with StringMapDataDecoder

use of org.redisson.client.protocol.decoder.StringMapDataDecoder in project redisson by redisson.

the class RedissonClusterConnection method info.

@Override
public Properties info(RedisClusterNode node, String section) {
    RedisStrictCommand<Map<String, String>> command = new RedisStrictCommand<Map<String, String>>("INFO", section, new StringMapDataDecoder());
    Map<String, String> info = execute(node, command);
    Properties result = new Properties();
    for (Entry<String, String> entry : info.entrySet()) {
        result.setProperty(entry.getKey(), entry.getValue());
    }
    return result;
}
Also used : StringMapDataDecoder(org.redisson.client.protocol.decoder.StringMapDataDecoder) RedisStrictCommand(org.redisson.client.protocol.RedisStrictCommand)

Aggregations

RedisStrictCommand (org.redisson.client.protocol.RedisStrictCommand)1 StringMapDataDecoder (org.redisson.client.protocol.decoder.StringMapDataDecoder)1