@rxap/ngx-memory 19.0.1 → 19.0.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +25 -23
- package/compodoc/changelog.html +2 -0
- package/compodoc/index.html +15 -21
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +102 -102
- package/docs/html/assets/highlight.css +6 -13
- package/docs/html/classes/EphemeralStorageService.html +3 -3
- package/docs/html/classes/LocalStorageService.html +3 -3
- package/docs/html/classes/MockStorage.html +8 -8
- package/docs/html/classes/SessionStorageService.html +3 -3
- package/docs/html/classes/StorageService.html +3 -3
- package/docs/html/functions/LocalStorage.html +1 -1
- package/docs/html/functions/SessionStorage.html +1 -1
- package/docs/html/functions/StorageGet.html +1 -1
- package/docs/html/functions/StorageHas.html +1 -1
- package/docs/html/functions/StorageKey.html +1 -1
- package/docs/html/functions/StorageRemove.html +1 -1
- package/docs/html/functions/StorageSet.html +1 -1
- package/docs/html/functions/WebStorage.html +1 -1
- package/docs/html/functions/getExpired.html +1 -1
- package/docs/html/functions/stringify.html +1 -1
- package/docs/html/index.html +22 -21
- package/docs/html/types/ExpiredUnit.html +1 -1
- package/docs/html/variables/isBrowser.html +1 -1
- package/docs/markdown/README.md +25 -23
- package/docs/markdown/classes/EphemeralStorageService.md +7 -7
- package/docs/markdown/classes/LocalStorageService.md +7 -7
- package/docs/markdown/classes/MockStorage.md +8 -8
- package/docs/markdown/classes/SessionStorageService.md +7 -7
- package/docs/markdown/classes/StorageService.md +7 -7
- package/docs/markdown/functions/LocalStorage.md +1 -1
- package/docs/markdown/functions/SessionStorage.md +1 -1
- package/docs/markdown/functions/StorageGet.md +1 -1
- package/docs/markdown/functions/StorageHas.md +1 -1
- package/docs/markdown/functions/StorageKey.md +1 -1
- package/docs/markdown/functions/StorageRemove.md +1 -1
- package/docs/markdown/functions/StorageSet.md +1 -1
- package/docs/markdown/functions/WebStorage.md +1 -1
- package/docs/markdown/functions/getExpired.md +1 -1
- package/docs/markdown/functions/stringify.md +1 -1
- package/docs/markdown/type-aliases/ExpiredUnit.md +1 -1
- package/docs/markdown/variables/isBrowser.md +1 -1
- package/docs/wiki/Class.EphemeralStorageService.md +7 -7
- package/docs/wiki/Class.LocalStorageService.md +7 -7
- package/docs/wiki/Class.MockStorage.md +8 -8
- package/docs/wiki/Class.SessionStorageService.md +7 -7
- package/docs/wiki/Class.StorageService.md +7 -7
- package/docs/wiki/Function.LocalStorage.md +1 -1
- package/docs/wiki/Function.SessionStorage.md +1 -1
- package/docs/wiki/Function.StorageGet.md +1 -1
- package/docs/wiki/Function.StorageHas.md +1 -1
- package/docs/wiki/Function.StorageKey.md +1 -1
- package/docs/wiki/Function.StorageRemove.md +1 -1
- package/docs/wiki/Function.StorageSet.md +1 -1
- package/docs/wiki/Function.WebStorage.md +1 -1
- package/docs/wiki/Function.getExpired.md +1 -1
- package/docs/wiki/Function.stringify.md +1 -1
- package/docs/wiki/Home.md +25 -23
- package/docs/wiki/TypeAlias.ExpiredUnit.md +1 -1
- package/docs/wiki/Variable.isBrowser.md +1 -1
- package/package.json +2 -2
package/docs/html/index.html
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/ngx-memory</title><meta name="description" content="Documentation for @rxap/ngx-memory"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script><script async src="assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/ngx-memory</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>@rxap/ngx-memory</h1></div><div class="tsd-panel tsd-typography"><p>This package provides Angular services and decorators for interacting with web storage (localStorage and sessionStorage) and in-memory storage. It offers a simple way to manage data persistence with expiration options and provides decorators for binding class properties directly to storage values. The package includes services for local storage, session storage, and ephemeral (in-memory) storage.</p>
|
|
2
2
|
<p><a href="https://www.npmjs.com/package/@rxap/ngx-memory"><img src="https://img.shields.io/npm/v/@rxap/ngx-memory?style=flat-square" alt="npm version"></a>
|
|
3
|
-
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
prettier"></a>
|
|
7
|
-
<img src="https://img.shields.io/librariesio/release/npm/@rxap/ngx-memory" alt="Libraries.io dependency status for latest release, scoped npm
|
|
8
|
-
package">
|
|
3
|
+
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly"></a>
|
|
4
|
+
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="styled with prettier"></a>
|
|
5
|
+
<img src="https://img.shields.io/librariesio/release/npm/@rxap/ngx-memory" alt="Libraries.io dependency status for latest release, scoped npm package">
|
|
9
6
|
<img src="https://img.shields.io/npm/dm/@rxap/ngx-memory" alt="npm">
|
|
10
|
-
<img src="https://img.shields.io/npm/l/@rxap/ngx-memory" alt="NPM">
|
|
11
|
-
<a href="#installation">Installation</a></p>
|
|
7
|
+
<img src="https://img.shields.io/npm/l/@rxap/ngx-memory" alt="NPM"></p>
|
|
12
8
|
<ul>
|
|
9
|
+
<li><a href="#installation">Installation</a></li>
|
|
13
10
|
<li><a href="#generators">Generators</a>
|
|
14
11
|
<ul>
|
|
15
12
|
<li><a href="#init">init</a></li>
|
|
16
13
|
</ul>
|
|
17
14
|
</li>
|
|
18
15
|
</ul>
|
|
19
|
-
<a id="installation
|
|
20
|
-
<pre><code
|
|
21
|
-
</code><button>Copy</button></pre>
|
|
16
|
+
<a id="installation" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Installation<a href="#installation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p><strong>Add the package to your workspace:</strong></p>
|
|
17
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@rxap/ngx-memory</span>
|
|
18
|
+
</code><button type="button">Copy</button></pre>
|
|
22
19
|
|
|
23
|
-
<p><strong>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
>
|
|
27
|
-
Initialize the package in the workspace
|
|
20
|
+
<p><strong>Install peer dependencies:</strong></p>
|
|
21
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@angular/core@^19.1.3</span><span class="hl-1"> </span>
|
|
22
|
+
</code><button type="button">Copy</button></pre>
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
<p><strong>Execute the init generator:</strong></p>
|
|
25
|
+
<pre><code class="bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/ngx-memory:init</span>
|
|
26
|
+
</code><button type="button">Copy</button></pre>
|
|
27
|
+
|
|
28
|
+
<a id="generators" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Generators<a href="#generators" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><a id="init" class="tsd-anchor"></a><h2 class="tsd-anchor-link">init<a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><blockquote>
|
|
29
|
+
<p>Initialize the package in the workspace</p>
|
|
30
|
+
</blockquote>
|
|
31
|
+
<pre><code class="bash"><span class="hl-0">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/ngx-memory:init</span>
|
|
32
|
+
</code><button type="button">Copy</button></pre>
|
|
33
|
+
|
|
34
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#installation"><span>Installation</span></a><a href="#generators"><span>Generators</span></a><ul><li><a href="#init"><span>init</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@rxap/ngx-memory</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -6,4 +6,4 @@ d: day
|
|
|
6
6
|
w: week
|
|
7
7
|
y: year
|
|
8
8
|
t: Custom (millisecond)</p>
|
|
9
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L11">storage-utility.ts:11</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/ngx-memory</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>isBrowser | @rxap/ngx-memory</title><meta name="description" content="Documentation for @rxap/ngx-memory"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/ngx-memory</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/ngx-memory</a></li><li><a href="isBrowser.html">isBrowser</a></li></ul><h1>Variable isBrowser<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">isBrowser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-comment tsd-typography"><p>Determining if an Angular application is rendered in the browser
|
|
2
2
|
The Angular <code>PLATFORM_ID</code> identifier cannot be used directly by the <code>decorator</code>.
|
|
3
3
|
The advantage of this is that it also works well when the server populates the Document itself.</p>
|
|
4
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/
|
|
4
|
+
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L18">storage-utility.ts:18</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/ngx-memory</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/docs/markdown/README.md
CHANGED
|
@@ -5,33 +5,35 @@
|
|
|
5
5
|
This package provides Angular services and decorators for interacting with web storage (localStorage and sessionStorage) and in-memory storage. It offers a simple way to manage data persistence with expiration options and provides decorators for binding class properties directly to storage values. The package includes services for local storage, session storage, and ephemeral (in-memory) storage.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@rxap/ngx-memory)
|
|
8
|
-
[](https://github.com/prettier/prettier)
|
|
12
|
-

|
|
8
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
9
|
+
[](https://github.com/prettier/prettier)
|
|
10
|
+

|
|
14
11
|

|
|
15
|
-

|
|
16
|
-
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
- [Installation](#installation)
|
|
17
15
|
- [Generators](#generators)
|
|
18
|
-
|
|
16
|
+
- [init](#init)
|
|
17
|
+
|
|
18
|
+
# Installation
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
**Add the package to your workspace:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @rxap/ngx-memory
|
|
23
|
+
```
|
|
24
|
+
**Install peer dependencies:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn add @angular/core@^19.1.3
|
|
27
|
+
```
|
|
28
|
+
**Execute the init generator:**
|
|
29
|
+
```bash
|
|
30
|
+
yarn nx g @rxap/ngx-memory:init
|
|
22
31
|
```
|
|
23
|
-
**Install peer dependencies:** ```bash yarn add
|
|
24
|
-
@angular/core@^19.1.3
|
|
25
|
-
```
|
|
26
|
-
**Execute the init generator:** ```bash yarn nx g
|
|
27
|
-
@rxap/ngx-memory:init ```
|
|
28
32
|
# Generators
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
>
|
|
33
|
-
Initialize the package in the workspace
|
|
34
|
+
## init
|
|
35
|
+
> Initialize the package in the workspace
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
```bash
|
|
38
|
+
nx g @rxap/ngx-memory:init
|
|
39
|
+
```
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: EphemeralStorageService
|
|
8
8
|
|
|
9
|
-
Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/ephemeral-storage.service.ts#L6)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/
|
|
|
18
18
|
|
|
19
19
|
> **new EphemeralStorageService**(): [`EphemeralStorageService`](EphemeralStorageService.md)
|
|
20
20
|
|
|
21
|
-
Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/ephemeral-storage.service.ts#L8)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/
|
|
|
34
34
|
|
|
35
35
|
> **clear**(): `void`
|
|
36
36
|
|
|
37
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
38
38
|
|
|
39
39
|
#### Returns
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
50
50
|
|
|
51
51
|
> **get**(`key`): `any`
|
|
52
52
|
|
|
53
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
72
72
|
|
|
73
73
|
> **has**(`key`): `boolean`
|
|
74
74
|
|
|
75
|
-
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
75
|
+
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L15)
|
|
76
76
|
|
|
77
77
|
#### Parameters
|
|
78
78
|
|
|
@@ -94,7 +94,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
94
94
|
|
|
95
95
|
> **remove**(`key`): `void`
|
|
96
96
|
|
|
97
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
97
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
98
98
|
|
|
99
99
|
Removes the specified key, e.g.:
|
|
100
100
|
- `remove('key')` Remove `key` key
|
|
@@ -122,7 +122,7 @@ key name or regular expression
|
|
|
122
122
|
|
|
123
123
|
> **set**(`key`, `value`, `expiredAt`, `expiredUnit`): `void`
|
|
124
124
|
|
|
125
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
125
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
126
126
|
|
|
127
127
|
#### Parameters
|
|
128
128
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: LocalStorageService
|
|
8
8
|
|
|
9
|
-
Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/local-storage.service.ts#L6)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob
|
|
|
18
18
|
|
|
19
19
|
> **new LocalStorageService**(): [`LocalStorageService`](LocalStorageService.md)
|
|
20
20
|
|
|
21
|
-
Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/local-storage.service.ts#L7)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob
|
|
|
34
34
|
|
|
35
35
|
> **clear**(): `void`
|
|
36
36
|
|
|
37
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
38
38
|
|
|
39
39
|
#### Returns
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
50
50
|
|
|
51
51
|
> **get**(`key`): `any`
|
|
52
52
|
|
|
53
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
72
72
|
|
|
73
73
|
> **has**(`key`): `boolean`
|
|
74
74
|
|
|
75
|
-
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
75
|
+
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L15)
|
|
76
76
|
|
|
77
77
|
#### Parameters
|
|
78
78
|
|
|
@@ -94,7 +94,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
94
94
|
|
|
95
95
|
> **remove**(`key`): `void`
|
|
96
96
|
|
|
97
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
97
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
98
98
|
|
|
99
99
|
Removes the specified key, e.g.:
|
|
100
100
|
- `remove('key')` Remove `key` key
|
|
@@ -122,7 +122,7 @@ key name or regular expression
|
|
|
122
122
|
|
|
123
123
|
> **set**(`key`, `value`, `expiredAt`, `expiredUnit`): `void`
|
|
124
124
|
|
|
125
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
125
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
126
126
|
|
|
127
127
|
#### Parameters
|
|
128
128
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: MockStorage
|
|
8
8
|
|
|
9
|
-
Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L110)
|
|
10
10
|
|
|
11
11
|
## Implements
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@ Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/753
|
|
|
28
28
|
|
|
29
29
|
> **cache**: `Record`\<`string`, `string`\> = `{}`
|
|
30
30
|
|
|
31
|
-
Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/
|
|
31
|
+
Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L112)
|
|
32
32
|
|
|
33
33
|
## Accessors
|
|
34
34
|
|
|
@@ -38,7 +38,7 @@ Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/753
|
|
|
38
38
|
|
|
39
39
|
> **get** **length**(): `number`
|
|
40
40
|
|
|
41
|
-
Defined in: [storage-utility.ts:114](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [storage-utility.ts:114](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L114)
|
|
42
42
|
|
|
43
43
|
Returns the number of key/value pairs.
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@ Returns the number of key/value pairs.
|
|
|
58
58
|
|
|
59
59
|
> **clear**(): `void`
|
|
60
60
|
|
|
61
|
-
Defined in: [storage-utility.ts:136](https://gitlab.com/rxap/packages/-/blob/
|
|
61
|
+
Defined in: [storage-utility.ts:136](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L136)
|
|
62
62
|
|
|
63
63
|
Removes all key/value pairs, if there are any.
|
|
64
64
|
|
|
@@ -80,7 +80,7 @@ Dispatches a storage event on Window objects holding an equivalent Storage objec
|
|
|
80
80
|
|
|
81
81
|
> **getItem**(`key`): `null` \| `string`
|
|
82
82
|
|
|
83
|
-
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/
|
|
83
|
+
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L118)
|
|
84
84
|
|
|
85
85
|
Returns the current value associated with the given key, or null if the given key does not exist.
|
|
86
86
|
|
|
@@ -106,7 +106,7 @@ Returns the current value associated with the given key, or null if the given ke
|
|
|
106
106
|
|
|
107
107
|
> **key**(`index`): `null` \| `string`
|
|
108
108
|
|
|
109
|
-
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/
|
|
109
|
+
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L122)
|
|
110
110
|
|
|
111
111
|
Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
|
|
112
112
|
|
|
@@ -132,7 +132,7 @@ Returns the name of the nth key, or null if n is greater than or equal to the nu
|
|
|
132
132
|
|
|
133
133
|
> **removeItem**(`key`): `void`
|
|
134
134
|
|
|
135
|
-
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/
|
|
135
|
+
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L126)
|
|
136
136
|
|
|
137
137
|
Removes the key/value pair with the given key, if a key/value pair with the given key exists.
|
|
138
138
|
|
|
@@ -160,7 +160,7 @@ Dispatches a storage event on Window objects holding an equivalent Storage objec
|
|
|
160
160
|
|
|
161
161
|
> **setItem**(`key`, `value`): `void`
|
|
162
162
|
|
|
163
|
-
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/
|
|
163
|
+
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L132)
|
|
164
164
|
|
|
165
165
|
Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
|
|
166
166
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SessionStorageService
|
|
8
8
|
|
|
9
|
-
Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/session-storage.service.ts#L6)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/bl
|
|
|
18
18
|
|
|
19
19
|
> **new SessionStorageService**(): [`SessionStorageService`](SessionStorageService.md)
|
|
20
20
|
|
|
21
|
-
Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/session-storage.service.ts#L7)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/bl
|
|
|
34
34
|
|
|
35
35
|
> **clear**(): `void`
|
|
36
36
|
|
|
37
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
38
38
|
|
|
39
39
|
#### Returns
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
50
50
|
|
|
51
51
|
> **get**(`key`): `any`
|
|
52
52
|
|
|
53
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
72
72
|
|
|
73
73
|
> **has**(`key`): `boolean`
|
|
74
74
|
|
|
75
|
-
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
75
|
+
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L15)
|
|
76
76
|
|
|
77
77
|
#### Parameters
|
|
78
78
|
|
|
@@ -94,7 +94,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
94
94
|
|
|
95
95
|
> **remove**(`key`): `void`
|
|
96
96
|
|
|
97
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
97
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
98
98
|
|
|
99
99
|
Removes the specified key, e.g.:
|
|
100
100
|
- `remove('key')` Remove `key` key
|
|
@@ -122,7 +122,7 @@ key name or regular expression
|
|
|
122
122
|
|
|
123
123
|
> **set**(`key`, `value`, `expiredAt`, `expiredUnit`): `void`
|
|
124
124
|
|
|
125
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
125
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
126
126
|
|
|
127
127
|
#### Parameters
|
|
128
128
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: `abstract` StorageService
|
|
8
8
|
|
|
9
|
-
Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L12)
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
20
20
|
|
|
21
21
|
> `protected` **new StorageService**(`storage`): [`StorageService`](StorageService.md)
|
|
22
22
|
|
|
23
|
-
Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
23
|
+
Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L13)
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
38
38
|
|
|
39
39
|
> **clear**(): `void`
|
|
40
40
|
|
|
41
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
42
42
|
|
|
43
43
|
#### Returns
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
50
50
|
|
|
51
51
|
> **get**(`key`): `any`
|
|
52
52
|
|
|
53
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -68,7 +68,7 @@ Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
68
68
|
|
|
69
69
|
> **has**(`key`): `boolean`
|
|
70
70
|
|
|
71
|
-
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
71
|
+
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L15)
|
|
72
72
|
|
|
73
73
|
#### Parameters
|
|
74
74
|
|
|
@@ -86,7 +86,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/753c
|
|
|
86
86
|
|
|
87
87
|
> **remove**(`key`): `void`
|
|
88
88
|
|
|
89
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
89
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
90
90
|
|
|
91
91
|
Removes the specified key, e.g.:
|
|
92
92
|
- `remove('key')` Remove `key` key
|
|
@@ -110,7 +110,7 @@ key name or regular expression
|
|
|
110
110
|
|
|
111
111
|
> **set**(`key`, `value`, `expiredAt`, `expiredUnit`): `void`
|
|
112
112
|
|
|
113
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
113
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
114
114
|
|
|
115
115
|
#### Parameters
|
|
116
116
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **LocalStorage**(`key`?, `expiredAt`?, `expiredUnit`?): (`target`, `propertyName`) => `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [decorators/local-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [decorators/local-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/decorators/local-storage.ts#L14)
|
|
12
12
|
|
|
13
13
|
`localStorage` Decorator
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **SessionStorage**(`key`?, `expiredAt`?, `expiredUnit`?): (`target`, `propertyName`) => `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [decorators/session-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [decorators/session-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/decorators/session-storage.ts#L14)
|
|
12
12
|
|
|
13
13
|
`sessionStorage` Decorator
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **StorageGet**(`storage`, `key`): `unknown`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:20](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L20)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **StorageHas**(`storage`, `key`): `boolean`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:37](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L37)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **StorageKey**(`storage`, `index`): `null` \| `string`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L65)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **StorageRemove**(`storage`, `key`): `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:58](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:58](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/memory/src/lib/storage-utility.ts#L58)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|