getByIdAndType(type, id) {
        return this.data[type]?.find(r => r.data.id === id);
    }
@description Get all cached resourced by resource id and type.
@param {ResourceType} type
@param {string} id
@returns {Object}