ezmobius/redis-rb — Issue #163: CannotDistribute WATCH
Author: alexfarrill
Created: 2011-12-20 20:25:21+00:00
State: open

Working on a distributed setup, I see that redis-rb raises the following error when using the WATCH command:

Redis::Distributed::CannotDistribute (WATCH cannot be used in Redis::Distributed because the keys involved need to be on the same server or because we cannot guarantee that the operation will be atomic.):

However, in my particular case, I am only watching one key. It strikes me that this should work correctly even in a distributed setup if the length of keys parameter is 1. I am considering allowing for this case in a fork, or am I missing something?

Thanks,

Alex Farrill