Skip to content

Instantly share code, notes, and snippets.

@hmpmarketing
Created January 5, 2018 19:28
Show Gist options
  • Save hmpmarketing/8c1891f81d316c8465146db3a0b7b723 to your computer and use it in GitHub Desktop.
Save hmpmarketing/8c1891f81d316c8465146db3a0b7b723 to your computer and use it in GitHub Desktop.
mysql.MobileAction.findOne({ where: {action_id: req.query.D} }).then(function(action) {
cache.remember('key1', 600, function() {
return Promise.resolve(action);
}).then((val) => {
console.log('set: ', val);
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment