redis: ensure we don't overflow