lib/ffi/hiredis_vip/sscan.rb in ffi-hiredis_vip-0.1.0.pre2 vs lib/ffi/hiredis_vip/sscan.rb in ffi-hiredis_vip-0.1.0.pre3
- old
+ new
@@ -6,21 +6,21 @@
end
def sscan(key, cursor, options = {})
reply = nil
command = "SSCAN %b %b"
- command_args = [ :string, key, :size_t, key.size, :string, cursor, :size_t, cursor.size ]
+ command_args = [ :pointer, key, :size_t, key.size, :string, cursor, :size_t, cursor.size ]
if options[:match]
matcher = "#{options[:match]}"
command << " MATCH %b"
- command_args << :string << matcher << :size_t << matcher.size
+ command_args << :pointer << matcher << :size_t << matcher.size
end
if options[:count]
count = "#{options[:count]}"
command << " COUNT %b"
- command_args << :string << count << :size_t << count.size
+ command_args << :pointer << count << :size_t << count.size
end
synchronize do |connection|
reply = @client.execute_command(connection, command, *command_args)
end