Skip to content

Commit 3f2995c

Browse files
committed
Polish "Add HGETDEL, HGETEX and HSETEX hash commands".
This commit polishes the previous commit with the following: - Convert space indents into tab indents Signed-off-by: Chris Bono <chris.bono@broadcom.com>
1 parent c60b5c3 commit 3f2995c

File tree

13 files changed

+577
-573
lines changed

13 files changed

+577
-573
lines changed

src/main/java/org/springframework/data/redis/connection/DefaultStringRedisConnection.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,20 +1617,20 @@ public List<String> hVals(String key) {
16171617
return convertAndReturn(delegate.hVals(serialize(key)), byteListToStringList);
16181618
}
16191619

1620-
@Override
1621-
public List<String> hGetDel(String key, String... fields) {
1622-
return convertAndReturn(delegate.hGetDel(serialize(key), serializeMulti(fields)), byteListToStringList);
1623-
}
1620+
@Override
1621+
public List<String> hGetDel(String key, String... fields) {
1622+
return convertAndReturn(delegate.hGetDel(serialize(key), serializeMulti(fields)), byteListToStringList);
1623+
}
16241624

1625-
@Override
1626-
public List<String> hGetEx(String key, Expiration expiration, String... fields) {
1627-
return convertAndReturn(delegate.hGetEx(serialize(key), expiration, serializeMulti(fields)), byteListToStringList);
1628-
}
1625+
@Override
1626+
public List<String> hGetEx(String key, Expiration expiration, String... fields) {
1627+
return convertAndReturn(delegate.hGetEx(serialize(key), expiration, serializeMulti(fields)), byteListToStringList);
1628+
}
16291629

1630-
@Override
1631-
public Boolean hSetEx(@NonNull String key, @NonNull Map<@NonNull String, String> hashes, HashFieldSetOption condition, Expiration expiration) {
1632-
return convertAndReturn(delegate.hSetEx(serialize(key), serialize(hashes), condition, expiration), Converters.identityConverter());
1633-
}
1630+
@Override
1631+
public Boolean hSetEx(@NonNull String key, @NonNull Map<@NonNull String, String> hashes, HashFieldSetOption condition, Expiration expiration) {
1632+
return convertAndReturn(delegate.hSetEx(serialize(key), serialize(hashes), condition, expiration), Converters.identityConverter());
1633+
}
16341634

16351635
@Override
16361636
public Long incr(String key) {

src/main/java/org/springframework/data/redis/connection/DefaultedRedisConnection.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,26 +1602,26 @@ default List<Long> hpTtl(byte[] key, byte[]... fields) {
16021602
return hashCommands().hpTtl(key, fields);
16031603
}
16041604

1605-
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1606-
@Override
1607-
@Deprecated
1608-
default List<byte[]> hGetDel(byte[] key, byte[]... fields) {
1609-
return hashCommands().hGetDel(key, fields);
1610-
}
1611-
1612-
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1613-
@Override
1614-
@Deprecated
1615-
default List<byte[]> hGetEx(byte[] key, Expiration expiration, byte[]... fields) {
1616-
return hashCommands().hGetEx(key, expiration, fields);
1617-
}
1618-
1619-
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1620-
@Override
1621-
@Deprecated
1622-
default Boolean hSetEx(byte[] key, Map<byte[], byte[]> hashes, HashFieldSetOption condition, Expiration expiration) {
1623-
return hashCommands().hSetEx(key, hashes, condition, expiration);
1624-
}
1605+
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1606+
@Override
1607+
@Deprecated
1608+
default List<byte[]> hGetDel(byte[] key, byte[]... fields) {
1609+
return hashCommands().hGetDel(key, fields);
1610+
}
1611+
1612+
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1613+
@Override
1614+
@Deprecated
1615+
default List<byte[]> hGetEx(byte[] key, Expiration expiration, byte[]... fields) {
1616+
return hashCommands().hGetEx(key, expiration, fields);
1617+
}
1618+
1619+
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
1620+
@Override
1621+
@Deprecated
1622+
default Boolean hSetEx(byte[] key, Map<byte[], byte[]> hashes, HashFieldSetOption condition, Expiration expiration) {
1623+
return hashCommands().hSetEx(key, hashes, condition, expiration);
1624+
}
16251625

16261626
/** @deprecated in favor of {@link RedisConnection#hashCommands()}}. */
16271627
@Override

0 commit comments

Comments
 (0)