function getValue(key) {
return redis.getValue(key).then(v => {
if (v)
return v;
return postgres.getValue(key);
});
}
function getValue(key) {
return redis.getValue(key).then(v => {
if (v)
return v;
return postgres.getValue(key);
});
}
Comments