MCPcopy Index your code
hub / github.com/ampproject/amphtml / setNonBoolean

Method setNonBoolean

src/service/storage-impl.js:95–97  ·  view source on GitHub ↗

* Saves the value of the specified property. Returns the promise that's * resolved when the operation completes. * Note: More restrict privacy review is required to store non boolean value. * @param {string} name * @param {*} value * @param {boolean=} opt_isUpdate * @return {!Promi

(name, value, opt_isUpdate)

Source from the content-addressed store, hash-verified

93 * @return {!Promise}
94 */
95 setNonBoolean(name, value, opt_isUpdate) {
96 return this.saveStore_((store) => store.set(name, value, opt_isUpdate));
97 }
98
99 /**
100 * Removes the specified property. Returns the promise that's resolved when

Callers 4

setMethod · 0.95
setCidBackupFunction · 0.80
setSession_Method · 0.80
updateStoredValue_Method · 0.80

Calls 2

saveStore_Method · 0.95
setMethod · 0.45

Tested by

no test coverage detected