1

我有 :

var g1 = 0,
client.get('r:'+data[i]+':g1:'+(timestamp), function(err, clicks){
    g1 = clicks;
});

console.log(g1);

但不工作,我怎样才能在redis回调函数之外获取数据?

4

0 回答 0