-
Couldn't load subscription status.
- Fork 21
Closed
Labels
Hack OctoberThings to fix in OctoberThings to fix in October
Description
using the following, for example, does not work
await client.multi().set('a','b').exec()
temporary fix:
- in node_modules/redis-commands/commands.json, remove the multi key (or find a way to skip multi in async-redis decorate)
- use
const redis = require("redis")
const asyncRedis = require("async-redis")
const client = redis.createClient()
const asyncRedisClient = asyncRedis.decorate(client)
- use all commands the normal way, except for multi - wrap it in a promise
const res = await new Promise((resolve, reject)=>{
multistack = asyncRedisClient.multi()
multistack.set('a','b')
multistack.hset('h','x','y')
multistack.exec((err,results)=>{
resolve(results)
})
})
gilad-solter, yentsun and drsherlock
Metadata
Metadata
Assignees
Labels
Hack OctoberThings to fix in OctoberThings to fix in October