in scripts/lua/lib/redis.lua [405:414]
function _M.createResource(red, key, field, resourceObj, snapshotId)
if snapshotId ~= nil then
key = utils.concatStrings({'snapshots:', snapshotId, ':', key})
end
local ok, err = hset(red, key, field, resourceObj)
if not ok then
request.err(500, utils.concatStrings({"Failed to save the resource: ", err}))
end
end