Answer the question
In order to leave comments, you need to log in
How to remove key-values from redis by value?
I set the key-value like this:
const token = randtoken.uid(256);
redis.set(token, email, 'EX', 60 * 60 * 24);
const link = `${url}/auth/confirm/${token}`;
mail.send({
to: to,
from: from,
subject: 'Confirm email',
html: `<strong>${link}</strong>`,
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question