Skip to content

Commit

Permalink
adding same commands for 'simple'
Browse files Browse the repository at this point in the history
  • Loading branch information
atakavci authored Oct 2, 2024
1 parent 011f4e7 commit 20b0536
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public void simple() {
control.set("foo", "bar");
assertEquals("bar", jedis.get("foo"));
control.del("foo");
// These dummyKey operations just to gain some time for arrival of invalidation message on connection
control.set("dummyKey", "dummyValue");
control.get("dummyKey");
control.del("dummyKey");
assertNull(jedis.get("foo"));
}
}
Expand All @@ -52,6 +56,7 @@ public void simpleWithSimpleMap() {
assertEquals("bar", jedis.get("foo"));
assertEquals(1, cache.getSize());
control.del("foo");
// These dummyKey operations just to gain some time for arrival of invalidation message on connection
control.set("dummyKey", "dummyValue");
control.get("dummyKey");
control.del("dummyKey");
Expand Down Expand Up @@ -83,6 +88,7 @@ public void flushAllWithSimpleMap() {
assertEquals("bar", jedis.get("foo"));
assertEquals(1, cache.getSize());
control.flushAll();
// These dummyKey operations just to gain some time for arrival of invalidation message on connection
control.set("dummyKey", "dummyValue");
control.get("dummyKey");
control.del("dummyKey");
Expand Down

0 comments on commit 20b0536

Please sign in to comment.