The client that this data provider will be used by.
The options passed to the Redis client.
Readonly
clientThe client that this data provider will be used by.
DataProvider
Private
redisThe Redis client for this data provider.
RedisDataProvider
Private
_clearPrivate
_deletePrivate
_getPrivate
Get a value for a given absolute key.
The key of the data to be queried.
A promise that resolves the queried data.
Private
Get a value for a given absolute key.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Private
_setClear all data in a guild.
The guild to clear the data from.
A promise that resolves once all data has been deleted.
client#dataProviderClear
Delete a key-value pair in a guild.
The guild for which the key-value pair will be deleted.
The key to delete.
A promise that resolves the data that has been deleted.
Get a value for a key in a guild.
The guild for which the data will be queried.
The key of the data to be queried.
A promise that resolves the queried data.
Get a value for a key in a guild.
The guild for which the data will be queried.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Get a value for a key in a global scope.
The key of the data to be queried.
A promise that resolves the queried data.
Get a value for a key in a global scope.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Initialize this Redis data provider. This connects the data provider to the Redis service. It also delegates the Redis client error handling to the client's error event handler.
A promise that resolves this Redis data provider once it's ready.
client#dataProviderInit
Private
resolvePrivate
Resolve the key for the provided guild or for the global scope if not provided.
The key to resolve.
Optional
guild: GuildThe guild for which the key will be resolved.
The resolved key.
Set a value for a key in a guild.
The guild for which the data will be set.
The key of the data to be set.
The value to set.
A promise that resolves once the data is saved.
Generated using TypeDoc
A DataProvider implemented with a Redis backend.