remove trailing whitespace
store jid as the value of redis unique locks