Nicolas Fouché
unread,May 12, 2012, 1:20:20 PM5/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to redi...@googlegroups.com
hello bros.
Anyone knows how to send the HINCRBYFLOAT command with Lua. I get this error: "Lua redis() command arguments must be strings or integers".
tostring does not help. Something seems to autocast my string to a float.
local a = 2.1
redis.call('hincrbyfloat', 'lol, 'total', a) # => "Lua redis() command arguments must be strings or integers".
redis.call('hincrbyfloat', 'lol, 'total', tostring(a)) # => "Lua redis() command arguments must be strings or integers".
Thanks