src/sap.ui.core/src/sap/ui/core/routing/TargetCache.js
function (sName, sType, oObject) {
				var oInstanceCache;

				this._checkName(sName, sType);
				assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'");

				oInstanceCache = this._oCache[sType.toLowerCase()][sName];

				if (!oInstanceCache) {
					oInstanceCache = this._oCache[sType.toLowerCase()][sName] = {};
				}

				oInstanceCache[undefined] = oObject;

				return this;
			}
function (sName, sType, oObject) {
				var oInstanceCache;

				this._checkName(sName, sType);
				assert(sType === "View" || sType === "Component", "sType must be either 'View' or 'Component'");

				oInstanceCache = this._oCache[sType.toLowerCase()][sName];

				if (!oInstanceCache) {
					oInstanceCache = this._oCache[sType.toLowerCase()][sName] = {};
				}

				oInstanceCache[undefined] = oObject;

				return this;
			}
function ( sName , sType , oObject ) { var oInstanceCache ; this . _checkName ( sName , sType ) ; assert ( sType === "View" || sType === "Component" , "sType must be either 'View' or 'Component'" ) ; oInstanceCache = this . _oCache [ sType . toLowerCase ( ) ] [ sName ] ; if ( ! oInstanceCache ) { oInstanceCache = this . _oCache [ sType . toLowerCase ( ) ] [ sName ] = { } ; } oInstanceCache [ undefined ] = oObject ; return this ; }
Adds or overwrites a view or a component in the TargetCache. The given object is cached under its name and the 'undefined' key.

If the third parameter is set to null or undefined, the previous cache view or component under the same name isn't managed by the TargetCache instance.
The lifecycle (for example the destroy) of the view or component instance should be maintained by additional code.


@param {string} sName Name of the view or component, may differ from the actual name of the oObject parameter provided, since you can retrieve this view or component per {@link #.getObject}.
@param {string} sType whether the object is a "View" or "Component". Views and components are stored separately in the cache. This means that a view and a component instance
could be stored under the same name.
@param {sap.ui.core.mvc.View|sap.ui.core.UIComponent|null|undefined} oObject the view or component instance
@return {sap.ui.core.routing.TargetCache} this for chaining.
@private
Adds or overwrites a view or a component in the TargetCache . The given object is cached under its name and the undefined key .