Skip to content

Instantly share code, notes, and snippets.

@TheDeveloper
Created July 21, 2017 10:02
Show Gist options
  • Save TheDeveloper/1f3d0208c9c433cbbdcecef5970dd7da to your computer and use it in GitHub Desktop.
Save TheDeveloper/1f3d0208c9c433cbbdcecef5970dd7da to your computer and use it in GitHub Desktop.
Redis HMSETX script
local key = KEYS[1]
local args = ARGV
local call = redis.call
if call("EXISTS", key) == 0 then
return nil
end
return call("HMSET", key, unpack(args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment