From f6898656e7c0b7ba88f83ae0479500d056501f25 Mon Sep 17 00:00:00 2001 From: Nikita Date: Fri, 4 May 2018 18:01:08 +0300 Subject: [PATCH] RKeys.findKeysByPattern and findKeysByPatternAsync methods are deprecated now. --- redisson/src/main/java/org/redisson/api/RKeys.java | 13 +++---------- .../src/main/java/org/redisson/api/RKeysAsync.java | 13 +++---------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/redisson/src/main/java/org/redisson/api/RKeys.java b/redisson/src/main/java/org/redisson/api/RKeys.java index b9ae272b0..4052e0ff3 100644 --- a/redisson/src/main/java/org/redisson/api/RKeys.java +++ b/redisson/src/main/java/org/redisson/api/RKeys.java @@ -198,17 +198,10 @@ public interface RKeys extends RKeysAsync { */ String randomKey(); - /** - * Find keys by key search pattern at once using KEYS command. - * - * Supported glob-style patterns: - * h?llo subscribes to hello, hallo and hxllo - * h*llo subscribes to hllo and heeeello - * h[ae]llo subscribes to hello and hallo, but not hillo - * - * @param pattern - match pattern - * @return collection of keys + /* + * Use getKeysByPattern method instead */ + @Deprecated Collection findKeysByPattern(String pattern); /** diff --git a/redisson/src/main/java/org/redisson/api/RKeysAsync.java b/redisson/src/main/java/org/redisson/api/RKeysAsync.java index 463e3e474..69db6f0d7 100644 --- a/redisson/src/main/java/org/redisson/api/RKeysAsync.java +++ b/redisson/src/main/java/org/redisson/api/RKeysAsync.java @@ -158,17 +158,10 @@ public interface RKeysAsync { */ RFuture randomKeyAsync(); - /** - * Find keys by key search pattern in async mode - * - * Supported glob-style patterns: - * h?llo subscribes to hello, hallo and hxllo - * h*llo subscribes to hllo and heeeello - * h[ae]llo subscribes to hello and hallo, but not hillo - * - * @param pattern - match pattern - * @return collections of keys + /* + * Use getKeysByPattern method instead */ + @Deprecated RFuture> findKeysByPatternAsync(String pattern); /**