93
edits
(→Retrieving Values: more to return value) |
(→Storing Values: added notes about exception throwing) |
||
| Line 35: | Line 35: | ||
<code>key</code>: A string uniquely identifying the data to be placed in persistent storage. | <code>key</code>: A string uniquely identifying the data to be placed in persistent storage. | ||
<code>value</code>: A JS primitive or JSON-able JS object that represents the data to be stored in persistent storage. If some other data with the given <code>key</code> is already being stored, it is overwritten by <code>value</code>. | <code>value</code>: A JS primitive or JSON-able JS object that represents the data to be stored in persistent storage. If some other data with the given <code>key</code> is already being stored, it is overwritten by <code>value</code>. If <code>value</code> is not a JS primitive or a JSON-able JS object, an exception is thrown. | ||
''Return value'' | ''Return value'' | ||
edits