Пример #1
0
function setRecords(email, ip, emailRecord, ipRecord, ipEmailRecord) {
  return P.all(
    [
      // store records ignoring errors
      mc.setAsync(email, emailRecord, LIFETIME).catch(ignore),
      mc.setAsync(ip, ipRecord, LIFETIME).catch(ignore),
      mc.setAsync(ip + email, ipEmailRecord, LIFETIME).catch(ignore)
    ]
  )
}
Пример #2
0
 function (emailRecord) {
   emailRecord.passwordReset()
   return mc.setAsync(email, emailRecord, LIFETIME).catch(ignore)
 }