I am writing like plug-in, which provides an like functionality for anonymous as well as registered user.
1. Anonymous User should be able to like on any comment/reply and I have to restrict anonymous user via IP address.
Yet, I can store IP values to redis database, I need to find out, The given IP value is present in "like:pid" hash set.
I need to write query structure which finds out the given anonymous users IP address is not present in database for that particular post.