lib/ffi/hiredis_vip/mget.rb in ffi-hiredis_vip-0.1.0.pre2 vs lib/ffi/hiredis_vip/mget.rb in ffi-hiredis_vip-0.1.0.pre3
- old
+ new
@@ -10,10 +10,10 @@
keys = keys.flatten
command = "MGET"
command_args = []
keys.each do |key|
command << " %b"
- command_args << :string << key << :size_t << key.size
+ command_args << :pointer << key << :size_t << key.size
end
synchronize do |connection|
reply = @client.execute_command(connection, command, *command_args)
end