Method: Redis#watch

Defined in:
lib/redis.rb

#watch(*keys) ⇒ Object

Watch the given keys to determine execution of the MULTI/EXEC block.



987
988
989
990
991
# File 'lib/redis.rb', line 987

def watch(*keys)
  synchronize do
    @client.call [:watch, *keys]
  end
end