'Find if value already exists in key redis

I am using node-redis now i want to check if my key has the same value or not if not insert the data its basically checking a duplicate data , my data is stored in an object type. thank you .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source