Question about stored values in redis?

11 views
Skip to first unread message

Pere Urbón Bayes

unread,
Feb 9, 2012, 5:21:23 AM2/9/12
to redi...@googlegroups.com
Hi,
my name is Pere, and I've a few questions around redis storage. The
important thing is that in my project, some values are not being
stored in redis, but no exceptions notifies this situation.

I've the problem that I am not able to reproduce this, but I would
love to include some sanity check code, do you have any idea how I can
check if a value was really stored or not in redis? How to make redis
complain if there are errors or how to debug this crazy problem?

Thank you very much,

--
/purbon
- @purbon
- http://www.purbon.com

Peter Bourgon

unread,
Feb 9, 2012, 5:26:19 AM2/9/12
to redi...@googlegroups.com
Are you checking the reply object from your store command?

I've never seen a situation where the reply is "as expected" and Redis
has somehow silently failed to apply the command.

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

ivan babrou

unread,
Feb 9, 2012, 5:26:36 AM2/9/12
to redi...@googlegroups.com
What language and client do you use? How do you set values in your code? Do you have expire and maxmemory in redis?

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.




--
Regards, Ian Babrou
http://bobrik.name http://twitter.com/ibobrik skype:i.babrou

Dvir Volk

unread,
Feb 9, 2012, 5:27:01 AM2/9/12
to redi...@googlegroups.com
Hi
A good place to start would be the MONITOR command in the console, which shows exactly what actions are being performed on your server.

if values are not stored, it usually amounts to one of the following:
1. you have a slave and a master, and are writing to the slave by mistake.
2. you have some problem with the keys, so you are not reading the same keys you are writing.
3. it's a problem with your client or your code.

MONITOR will show you what you are actually doing to redis.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.




--
Dvir Volk
System Architect, The Everything Project (formerly DoAT)

Pere Urbón Bayes

unread,
Feb 9, 2012, 5:53:15 AM2/9/12
to redi...@googlegroups.com
Thanks! Will try all of this, I've the feeling that its a problem with
the gems we are using and how they set the namespace, but I am not
sure and need ways to prove it, xD!

Thank you very much!

- purbon

2012/2/9 Dvir Volk <dv...@doat.com>:

Reply all
Reply to author
Forward
0 new messages