Package com.reve.redis.cluster.command
Class KEYS
java.lang.Object
com.reve.redis.cluster.command.KEYS
- All Implemented Interfaces:
RedisCommand
Asynchronously callable KEYS command class. Keys command can't be run on full cluster. We must run this command to
each of the master nodes of a cluster separately and merge all the result.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KEYS
public KEYS()
-
-
Method Details
-
execute
- Parameters:
regEx- Regular expression which will be searched in all availableNodes present in the givenJedisClusterclusterObserver- Command KEYS will be run in this instance of Cluster.- Returns:
- the
HashSet<String>containing all the keys that matches the given regular expression in the whole cluster. - Throws:
Exception- if any occurs while executing the command.
-