Simple pagination for Redis lists and sorted sets.