Class RedisUtils
java.lang.Object
overit.geocallapp.utilities.redis.RedisUtils
Utility class for Redis management.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionfindKeysByPattern(String pattern) Finds keys in Redis that match a specified pattern.
-
Method Details
-
findKeysByPattern
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.
-