ネストされたRedisの文を使用している間、私はエラーを取得していますし、私はいくつかの例を挙げて取り組んできたといつでもIAMは、ノードのjs IAMなって、いくつかのエラーでネストされたRedisの文を使用して。 私は次のコードを持っている:私は出力に接続さなぜ私はRedisのために新しいです
、 のvalを取得しています
var redis= require("redis"); client = redis.createClient(); client.on('connect',function(err){ if(err) console.log("not able to connect"); console.log("connected");}); client.RPUSH("pony","new"); client.RPUSH("pony","val"); client.LINDEX("pony",-1,function(err,reply){ if(err) console.log("oops"); console.log(reply); client.LREM("pony",-1,reply,function(err,rep){ if(err) console.log("error"); else console.log(rep); });}) client.quit();
を、 エラー
はここLINDEXからの返信は、文字列である "バル" と私はそれをLREMに渡します。
なぜネストされたclient.lremは、回答の値を取っていないのですか?
おかげで、私はそれを考え出しました – nuy5