标签: node.js redis
我有:
var g1 = 0, client.get('r:'+data[i]+':g1:'+(timestamp), function(err, clicks){ g1 = clicks; }); console.log(g1);
但没有工作,我如何在redis回调函数之外获取数据?