Add support for defining and running lua scripts as command
Define command
import Redis from '@ioc:Adonis/Addons/Redis'
Redis.defineCommand('defineValue', {
numberOfKeys: 1,
lua: `redis.call('set', KEYS[1], ARGV[1])`,
})
await Redis.runCommand('defineValue', 'greeting', 'hello world')
Full Changelog: v7.0.10...v7.1.0