Search in sources :

Example 1 with MapValueDecoder

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

the class RedissonMap method getAllOperationAsync.

public RFuture<Map<K, V>> getAllOperationAsync(Set<K> keys) {
    List<Object> args = new ArrayList<>(keys.size() + 1);
    args.add(getRawName());
    encodeMapKeys(args, keys);
    RFuture<Map<K, V>> future = commandExecutor.readAsync(getRawName(), codec, new RedisCommand<>("HMGET", new MapValueDecoder(new MapGetAllDecoder(new ArrayList<>(keys), 0))), args.toArray());
    return future;
}
Also used : MapGetAllDecoder(org.redisson.connection.decoder.MapGetAllDecoder) MapValueDecoder(org.redisson.client.protocol.decoder.MapValueDecoder)

Aggregations

MapValueDecoder (org.redisson.client.protocol.decoder.MapValueDecoder)1 MapGetAllDecoder (org.redisson.connection.decoder.MapGetAllDecoder)1