Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 :
var g1 = 0, client.get('r:'+data[i]+':g1:'+(timestamp), function(err, clicks){ g1 = clicks; }); console.log(g1);
但不工作,我怎样才能在redis回调函数之外获取数据?