Skip to content

Commit c620950

Browse files
committed
Rename variable
1 parent 7784a9b commit c620950

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/redis/clients/jedis/ClientSideCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ public abstract class ClientSideCache {
2121
protected static final int DEFAULT_MAXIMUM_SIZE = 10_000;
2222
protected static final int DEFAULT_EXPIRE_SECONDS = 100;
2323

24-
private final CommandLongHashing function;
24+
private final CommandLongHashing commandHashing;
2525
private final Map<ByteBuffer, Set<Long>> keyToCommandHashes;
2626

27-
protected ClientSideCache(CommandLongHashing function) {
28-
this.function = function;
27+
protected ClientSideCache(CommandLongHashing commandHashing) {
28+
this.commandHashing = commandHashing;
2929
this.keyToCommandHashes = new ConcurrentHashMap<>();
3030
}
3131

@@ -71,7 +71,7 @@ private void invalidateKeyAndRespectiveCommandHashes(Object key) {
7171

7272
final <T> T getValue(Function<CommandObject<T>, T> loader, CommandObject<T> command, Object... keys) {
7373

74-
final long hash = function.hash(command);
74+
final long hash = commandHashing.hash(command);
7575

7676
T value = (T) get(hash);
7777
if (value != null) {

0 commit comments

Comments
 (0)