How to remove key-value from redis by value?

I set the key-value thus:

const token = randtoken.uid(256);
redis.set(token, email, 'EX', 60 * 60 * 24);

 const link = `${url}/auth/confirm/${token}`;

 to: to,
 from: from,
 subject: 'Confirm email',
 html: `<strong>${link}</strong>`,

The problem is that there is a possibility of resending emails to confirm your account and you need to when created a new token, the token is in the old letter is no longer active.

I need to remove or put in the black list tokens, knowing email.
As I understand it, it's not done. But there are some ways ?
March 19th 20 at 08:30
1 answer
March 19th 20 at 08:32
To use as a key, not a random token and email.

Find more questions by tags Node.jsRedis