Class RedisUtils

java.lang.Object
overit.geocallapp.utilities.redis.RedisUtils

public class RedisUtils extends Object
Utility class for Redis management.
Since:
1.0
  • Method Details

    • findKeysByPattern

      public static List<String> findKeysByPattern(String pattern)
      Finds keys in Redis that match a specified pattern. This method searches Redis for keys that match the given pattern using the SCAN command. It returns a list of matching keys. If no keys match, an empty list is returned.
      Parameters:
      pattern - The pattern to match against keys.
      Returns:
      A list of matching keys, or an empty list if none are found.