Class: RedisUtilities

RedisUtilities(client)

Main class of redis-utilities, contains all methods for redis.

Constructor

new RedisUtilities(client)

Constructor for RedisUtilities
Parameters:
Name Type Description
client Object Your redis client, created with redis.createClient()
Source:

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
Source:
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:
      h?llo matches hello, hallo and hxllo
      h*llo matches hllo and heeeello
      h[ae]llo matches hello and hallo, but not hillo
      h[^e]llo matches hallo, hbllo, ... but not hello
      h[a-b]llo matches hallo and hbllo

    Source
count * 1000 Argument passed to SCAN command
Source:
Returns:
All matching keys
Type
Promise.<Array.<string>>