lib/ffi/hiredis_vip/persist.rb in ffi-hiredis_vip-0.1.0.pre2 vs lib/ffi/hiredis_vip/persist.rb in ffi-hiredis_vip-0.1.0.pre3
- old
+ new
@@ -6,10 +6,10 @@
end
def persist(key)
reply = nil
command = "PERSIST %b"
- command_args = [ :string, key, :size_t, key.size ]
+ command_args = [ :pointer, key, :size_t, key.size ]
synchronize do |connection|
reply = @client.execute_command(connection, command, *command_args)
end
return nil if reply.nil? || reply.null?