get pagination using offset/limit, with hacky workarounds for redis and redis-rb bugs