Skip to content

Commit

Permalink
rename method to invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Jan 30, 2024
1 parent e910168 commit 0ba4d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/ClientSideCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected ClientSideCache(Map<ByteBuffer, Set<Long>> keyHashes) {

protected abstract Object get(long hash);

final void invalidateKeys(List list) {
final void invalidate(List list) {
if (list == null) {
invalidateAll();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private static void processPush(final RedisInputStream is, ClientSideCache cache
//System.out.println("PUSH: " + SafeEncoder.encodeObject(list));
if (list.size() == 2 && list.get(0) instanceof byte[]
&& Arrays.equals(INVALIDATE_BYTES, (byte[]) list.get(0))) {
cache.invalidateKeys((List) list.get(1));
cache.invalidate((List) list.get(1));
}
}

Expand Down

0 comments on commit 0ba4d7d

Please sign in to comment.