Skip to content

Commit e5a7659

Browse files
committed
Guava HashFunction is preferred over CommandLongHasher
1 parent b6830b1 commit e5a7659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/redis/clients/jedis/csc/GuavaClientSideCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ public GuavaClientSideCache build() {
106106

107107
cb.expireAfterWrite(expireTime, expireTimeUnit);
108108

109-
return commandHasher != null ? new GuavaClientSideCache(cb.build(), commandHasher, cacheable)
110-
: hashFunction != null ? new GuavaClientSideCache(cb.build(), new GuavaCommandHasher(hashFunction), cacheable)
109+
return hashFunction != null ? new GuavaClientSideCache(cb.build(), new GuavaCommandHasher(hashFunction), cacheable)
110+
: commandHasher != null ? new GuavaClientSideCache(cb.build(), commandHasher, cacheable)
111111
: new GuavaClientSideCache(cb.build(), cacheable);
112112
}
113113
}

0 commit comments

Comments
 (0)