You can use transactions or pipelines with the multi or pipeline method.

Transactions are executed atomically, while pipelines are not. In pipelines you can execute multiple commands at once, but other commands from other clients can be executed in between.

const p = redis.pipeline()
p.set('foo', 'bar')
p.get('foo')
const res = await p.exec()

For more information on pipelines and transactions, see the Pipeline page.