@Override public List<byte[]> hMGet(byte[] key, byte[]... fields) { return convertAndReturn(delegate.hMGet(key, fields), identityConverter); }
@Override public List<HV> multiGet(K key, Collection<HK> fields) { if (fields.isEmpty()) { return Collections.emptyList(); } byte[] rawKey = rawKey(key); byte[][] rawHashKeys = new byte[fields.size()][]; int counter = 0; for (HK hashKey : fields) { rawHashKeys[counter++] = rawHashKey(hashKey); } List<byte[]> rawValues = execute(connection -> connection.hMGet(rawKey, rawHashKeys), true); return deserializeHashValues(rawValues); }
@Override public List<String> hMGet(String key, String... fields) { return convertAndReturn(delegate.hMGet(serialize(key), serializeMulti(fields)), byteListToStringList); }
@Override public List<byte[]> hMGet(byte[] key, byte[]... fields) { return redisConnection.hMGet(key, fields); }
@Override public List<byte[]> hMGet(byte[] key, byte[]... fields) { return convertAndReturn(delegate.hMGet(key, fields), identityConverter); }
@Override public List<byte[]> hMGet(byte[] key, byte[]... fields) { return convertAndReturn(delegate.hMGet(key, fields), identityConverter); }
@Override public List<HV> multiGet(K key, Collection<HK> fields) { if (fields.isEmpty()) { return Collections.emptyList(); } byte[] rawKey = rawKey(key); byte[][] rawHashKeys = new byte[fields.size()][]; int counter = 0; for (HK hashKey : fields) { rawHashKeys[counter++] = rawHashKey(hashKey); } List<byte[]> rawValues = execute(connection -> connection.hMGet(rawKey, rawHashKeys), true); return deserializeHashValues(rawValues); }
@Override public List<HV> multiGet(K key, Collection<HK> fields) { if (fields.isEmpty()) { return Collections.emptyList(); } byte[] rawKey = rawKey(key); byte[][] rawHashKeys = new byte[fields.size()][]; int counter = 0; for (HK hashKey : fields) { rawHashKeys[counter++] = rawHashKey(hashKey); } List<byte[]> rawValues = execute(connection -> connection.hMGet(rawKey, rawHashKeys), true); return deserializeHashValues(rawValues); }
@Override public List<String> hMGet(String key, String... fields) { return convertAndReturn(delegate.hMGet(serialize(key), serializeMulti(fields)), byteListToStringList); }
@Override public List<String> hMGet(String key, String... fields) { return convertAndReturn(delegate.hMGet(serialize(key), serializeMulti(fields)), byteListToStringList); }