Skip to content

Commit

Permalink
Guava HashFunction is preferred over CommandLongHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Mar 10, 2024
1 parent b6830b1 commit e5a7659
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public GuavaClientSideCache build() {

cb.expireAfterWrite(expireTime, expireTimeUnit);

return commandHasher != null ? new GuavaClientSideCache(cb.build(), commandHasher, cacheable)
: hashFunction != null ? new GuavaClientSideCache(cb.build(), new GuavaCommandHasher(hashFunction), cacheable)
return hashFunction != null ? new GuavaClientSideCache(cb.build(), new GuavaCommandHasher(hashFunction), cacheable)
: commandHasher != null ? new GuavaClientSideCache(cb.build(), commandHasher, cacheable)
: new GuavaClientSideCache(cb.build(), cacheable);
}
}
Expand Down

0 comments on commit e5a7659

Please sign in to comment.