node-redis
node-redis copied to clipboard
How to use lua scripts in v4?
Noticed the support for script() has been removed in v4. Wondering how lua scripts can be loaded in v4?
I'm trying to update the node-redis to v4 in bee-queue but getting issue with loading lua scripts here.
you can define lua scripts on the client and then use them like any other command. checkout the "scripts" section in the main readme and this example file
@jatinkumarg Use sendCommand(), i.e.:
const [exists] = await redis.sendCommand('script', 'exists', scriptChecksum);