tcl-dump.lua
-- DUMPs a Redis key in TCL-compatible binary string encoding | |
local b = redis.call("DUMP",KEYS[1]) | |
local s ="" | |
for i =1, string.len(b), 1do | |
s = s ..string.format("\\x%02X",string.byte(b,i)) | |
end | |
return s |