lib/ffi/hiredis_vip/set.rb in ffi-hiredis_vip-0.1.0.pre2 vs lib/ffi/hiredis_vip/set.rb in ffi-hiredis_vip-0.1.0.pre3

- old
+ new

@@ -11,10 +11,10 @@ def set(key, value, options = {}) reply = nil command = "SET %b %b" value = value.to_s - command_args = [ :string, key, :size_t, key.size, :string, value, :size_t, value.size ] + command_args = [ :pointer, key, :size_t, key.size, :pointer, value, :size_t, value.size ] if options[:ex] expiry = "#{options[:ex]}" command << " EX %b" command_args << :string << expiry << :size_t << expiry.size