Allow a cacheIdAttribute to be specified.