Created
July 21, 2017 10:02
-
-
Save TheDeveloper/1f3d0208c9c433cbbdcecef5970dd7da to your computer and use it in GitHub Desktop.
Redis HMSETX script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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