Implement exclusive intervals for sorted Redis sets and shorten debug code.