Constructor
new RedisUtilities(client)
Constructor for RedisUtilities
Parameters:
Name | Type | Description |
---|---|---|
client |
Object | Your redis client, created with redis.createClient() |
Methods
getAllKeys(count) → {Promise.<Array.<string>>}
Returns all keys of the selected database
Parameters:
Name | Type | Default | Description |
---|---|---|---|
count |
number | string | 1000 | Count passed to the SCAN command |
Returns:
All keys in the selected database.
- Type
- Promise.<Array.<string>>
getAllMatchingKeys(match, count) → {Promise.<Array.<string>>}
Returns all keys in selected database matching match
Parameters:
Name | Type | Default | Description |
---|---|---|---|
match |
* | String used to filter keys. Supported wildcards: Supported glob-style patterns:
Source |
|
count |
* | 1000 | Argument passed to SCAN command |
Returns:
All matching keys
- Type
- Promise.<Array.<string>>