@@ -286,27 +286,27 @@ void getWithValueLoaderShouldStoreCacheValue() {
286286 }
287287
288288 @ Test // DATAREDIS-481, DATAREDIS-1082
289- void removeShouldDeleteEntry () {
289+ void evictShouldDeleteEntry () {
290290
291291 doWithConnection (connection -> connection .set (binaryCacheKey , binaryCacheValue ));
292292
293293 RedisCacheWriter writer = RedisCacheWriter .create (connectionFactory ,
294294 config -> config .collectStatistics ().immediateWrites ());
295295
296- writer .remove (CACHE_NAME , binaryCacheKey );
296+ writer .evict (CACHE_NAME , binaryCacheKey );
297297
298298 doWithConnection (connection -> assertThat (connection .exists (binaryCacheKey )).isFalse ());
299299
300300 assertThat (writer .getCacheStatistics (CACHE_NAME ).getDeletes ()).isOne ();
301301 }
302302
303303 @ Test // GH-3236
304- void removeShouldNonblockingDeleteEntry () {
304+ void evictShouldNonblockingDeleteEntry () {
305305
306306 RedisCacheWriter writer = RedisCacheWriter .create (connectionFactory , RedisCacheWriterConfigurer ::collectStatistics );
307307 assumeTrue (writer .supportsAsyncRetrieve ());
308308
309- writer .remove (CACHE_NAME , binaryCacheKey );
309+ writer .evict (CACHE_NAME , binaryCacheKey );
310310
311311 doWithConnection (connection -> {
312312 Awaitility .await ().pollInSameThread ().pollDelay (Duration .ZERO ).until (() -> !connection .exists (binaryCacheKey ));
@@ -317,21 +317,21 @@ void removeShouldNonblockingDeleteEntry() {
317317 }
318318
319319 @ Test // GH-3236
320- void removeShouldDeleteEntryIfExists () {
320+ void evictIfPresentShouldDeleteEntryIfExists () {
321321
322322 doWithConnection (connection -> connection .set (binaryCacheKey , binaryCacheValue ));
323323
324324 RedisCacheWriter writer = RedisCacheWriter .create (connectionFactory , RedisCacheWriterConfigurer ::collectStatistics );
325325
326- assertThat (writer .removeIfPresent (CACHE_NAME , binaryCacheKey )).isTrue ();
326+ assertThat (writer .evictIfPresent (CACHE_NAME , binaryCacheKey )).isTrue ();
327327
328328 doWithConnection (connection -> assertThat (connection .exists (binaryCacheKey )).isFalse ());
329329
330330 assertThat (writer .getCacheStatistics (CACHE_NAME ).getDeletes ()).isOne ();
331331 }
332332
333333 @ Test // DATAREDIS-418, DATAREDIS-1082
334- void cleanShouldRemoveAllKeysByPattern () {
334+ void clearShouldRemoveAllKeysByPattern () {
335335
336336 doWithConnection (connection -> {
337337 connection .set (binaryCacheKey , binaryCacheValue );
@@ -341,7 +341,7 @@ void cleanShouldRemoveAllKeysByPattern() {
341341 RedisCacheWriter writer = RedisCacheWriter .create (connectionFactory ,
342342 config -> config .collectStatistics ().immediateWrites ());
343343
344- writer .clean (CACHE_NAME , (CACHE_NAME + "::*" ).getBytes (StandardCharsets .UTF_8 ));
344+ writer .clear (CACHE_NAME , (CACHE_NAME + "::*" ).getBytes (StandardCharsets .UTF_8 ));
345345
346346 doWithConnection (connection -> {
347347 assertThat (connection .exists (binaryCacheKey )).isFalse ();
@@ -352,7 +352,7 @@ void cleanShouldRemoveAllKeysByPattern() {
352352 }
353353
354354 @ Test // GH-3236
355- void nonBlockingCleanShouldRemoveAllKeysByPattern () {
355+ void nonBlockingClearShouldRemoveAllKeysByPattern () {
356356
357357 RedisCacheWriter writer = RedisCacheWriter .create (connectionFactory , RedisCacheWriterConfigurer ::collectStatistics );
358358 assumeTrue (writer .supportsAsyncRetrieve ());
@@ -362,7 +362,7 @@ void nonBlockingCleanShouldRemoveAllKeysByPattern() {
362362 connection .set ("foo" .getBytes (), "bar" .getBytes ());
363363 });
364364
365- writer .clean (CACHE_NAME , (CACHE_NAME + "::*" ).getBytes (StandardCharsets .UTF_8 ));
365+ writer .clear (CACHE_NAME , (CACHE_NAME + "::*" ).getBytes (StandardCharsets .UTF_8 ));
366366
367367 doWithConnection (connection -> {
368368 Awaitility .await ().pollInSameThread ().pollDelay (Duration .ZERO ).until (() -> !connection .exists (binaryCacheKey ));
0 commit comments