I have stored some data in Redis using Jedis.
Now I want to retrieve set values if the key exists in the set.
I'm using get function but I end up getting this error:
WRONGTYPE Operation against a key holding the wrong kind of value.
String str = jedis.get(word);
To store data I have serialized my Node class using toString function.
jedis.sadd(word, toString(node));
node is an instance of Node class.