src/sap.ui.core/src/sap/ui/core/cache/CacheManager.js
function (key) {
				var pGet,
					oMsr = startMeasurements("get", key);

				Log.debug("Cache Manager: Getting key [" + key + "]");

				pGet = this._callInstanceMethod("get", arguments).then(function callInstanceHandler(v) {
					Log.debug("Cache Manager: Getting key [" + key + "] done");
					oMsr.endAsync();
					return v;
				}, function (e) {
					Log.debug("Cache Manager: Getting key [" + key + "] failed. Error: " + e);
					oMsr.endAsync();
					throw e;
				});
				oMsr.endSync();
				return pGet;
			}
function (key) {
				var pGet,
					oMsr = startMeasurements("get", key);

				Log.debug("Cache Manager: Getting key [" + key + "]");

				pGet = this._callInstanceMethod("get", arguments).then(function callInstanceHandler(v) {
					Log.debug("Cache Manager: Getting key [" + key + "] done");
					oMsr.endAsync();
					return v;
				}, function (e) {
					Log.debug("Cache Manager: Getting key [" + key + "] failed. Error: " + e);
					oMsr.endAsync();
					throw e;
				});
				oMsr.endSync();
				return pGet;
			}
function ( key ) { var pGet , oMsr = startMeasurements ( "get" , key ) ; Log . debug ( "Cache Manager: Getting key [" + key + "]" ) ; pGet = this . _callInstanceMethod ( "get" , arguments ) . then ( function callInstanceHandler ( v ) { Log . debug ( "Cache Manager: Getting key [" + key + "] done" ) ; oMsr . endAsync ( ) ; return v ; } , function ( e ) { Log . debug ( "Cache Manager: Getting key [" + key + "] failed. Error: " + e ) ; oMsr . endAsync ( ) ; throw e ; } ) ; oMsr . endSync ( ) ; return pGet ; }
Retrieves a value for given key.
@param key the key to retrieve a value for
@returns {Promise} a promise that would be resolved in case of successful operation or rejected with
value of the error message if the operation fails. It resolves with a value that is either:
<ul>
<li>undefined - the entry does not exist</li>
<li>any other - the entry exists and value contains the actually one</li>
</ul>
@public
Retrieves a value for given key .