redis get returns null even though value exists

Viewed 1175

I'm struggling to find out what's the problem with redis.

I'm adding a record using the npm redis library, which I can see in Medis, which I use to explore Redis.

When I use GET *key* i don't get the value back but instead I get null. If I rename the key to something else I do get the value back. Also, if I rename the key to its name, I get the value back, too. What could be the problem?

Here are two screenshot to show the problem.

enter image description here

after rename to the same key

enter image description here

1 Answers

I just used a different key for voted. I assume voted is reserved for some reason.

Related