@rxap/ngx-memory 21.0.1 → 22.0.0-dev.1
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 +14 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +57 -5
- package/compodoc/classes/MockStorage.html +114 -37
- package/compodoc/dependencies.html +80 -13
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/EphemeralStorageService.html +107 -24
- package/compodoc/injectables/LocalStorageService.html +107 -24
- package/compodoc/injectables/SessionStorageService.html +107 -24
- package/compodoc/injectables/StorageService.html +96 -18
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +106 -0
- package/compodoc/miscellaneous/functions.html +75 -23
- package/compodoc/miscellaneous/typealiases.html +46 -4
- package/compodoc/miscellaneous/variables.html +58 -5
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/compodoc/todo.html +45 -60
- package/docs/documentation.json +490 -415
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/EphemeralStorageService.html +151 -9
- package/docs/html/classes/LocalStorageService.html +151 -9
- package/docs/html/classes/MockStorage.html +185 -15
- package/docs/html/classes/SessionStorageService.html +151 -9
- package/docs/html/classes/StorageService.html +151 -9
- package/docs/html/functions/LocalStorage.html +52 -5
- package/docs/html/functions/SessionStorage.html +52 -5
- package/docs/html/functions/StorageGet.html +43 -1
- package/docs/html/functions/StorageHas.html +43 -1
- package/docs/html/functions/StorageKey.html +43 -1
- package/docs/html/functions/StorageRemove.html +43 -1
- package/docs/html/functions/StorageSet.html +46 -1
- package/docs/html/functions/WebStorage.html +45 -1
- package/docs/html/functions/getExpired.html +43 -1
- package/docs/html/functions/stringify.html +42 -1
- package/docs/html/hierarchy.html +35 -1
- package/docs/html/index.html +40 -4
- package/docs/html/modules.html +48 -1
- package/docs/html/types/ExpiredUnit.html +35 -2
- package/docs/html/variables/isBrowser.html +35 -2
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/EphemeralStorageService.md +17 -17
- package/docs/markdown/classes/LocalStorageService.md +17 -17
- package/docs/markdown/classes/MockStorage.md +22 -22
- package/docs/markdown/classes/SessionStorageService.md +17 -17
- package/docs/markdown/classes/StorageService.md +18 -18
- package/docs/markdown/functions/LocalStorage.md +4 -18
- package/docs/markdown/functions/SessionStorage.md +4 -18
- package/docs/markdown/functions/StorageGet.md +3 -3
- package/docs/markdown/functions/StorageHas.md +3 -3
- package/docs/markdown/functions/StorageKey.md +5 -5
- package/docs/markdown/functions/StorageRemove.md +3 -3
- package/docs/markdown/functions/StorageSet.md +6 -6
- package/docs/markdown/functions/WebStorage.md +5 -19
- package/docs/markdown/functions/getExpired.md +2 -2
- package/docs/markdown/functions/stringify.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/type-aliases/ExpiredUnit.md +3 -3
- package/docs/markdown/variables/isBrowser.md +2 -2
- package/docs/wiki/Class.EphemeralStorageService.md +16 -16
- package/docs/wiki/Class.LocalStorageService.md +16 -16
- package/docs/wiki/Class.MockStorage.md +21 -21
- package/docs/wiki/Class.SessionStorageService.md +16 -16
- package/docs/wiki/Class.StorageService.md +17 -17
- package/docs/wiki/Function.LocalStorage.md +3 -17
- package/docs/wiki/Function.SessionStorage.md +3 -17
- package/docs/wiki/Function.StorageGet.md +2 -2
- package/docs/wiki/Function.StorageHas.md +2 -2
- package/docs/wiki/Function.StorageKey.md +4 -4
- package/docs/wiki/Function.StorageRemove.md +2 -2
- package/docs/wiki/Function.StorageSet.md +5 -5
- package/docs/wiki/Function.WebStorage.md +4 -18
- package/docs/wiki/Function.getExpired.md +1 -1
- package/docs/wiki/Function.stringify.md +1 -1
- package/docs/wiki/TypeAlias.ExpiredUnit.md +2 -2
- package/docs/wiki/Variable.isBrowser.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-memory.mjs +260 -258
- package/fesm2022/rxap-ngx-memory.mjs.map +1 -1
- package/package.json +6 -6
- package/types/rxap-ngx-memory.d.ts +53 -61
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L110)
|
|
10
10
|
|
|
11
11
|
## Implements
|
|
12
12
|
|
|
@@ -14,13 +14,13 @@ Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
14
14
|
|
|
15
15
|
## Constructors
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Constructor
|
|
18
18
|
|
|
19
|
-
> **new MockStorage**():
|
|
19
|
+
> **new MockStorage**(): `MockStorage`
|
|
20
20
|
|
|
21
21
|
#### Returns
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
`MockStorage`
|
|
24
24
|
|
|
25
25
|
## Properties
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L112)
|
|
32
32
|
|
|
33
33
|
## Accessors
|
|
34
34
|
|
|
@@ -38,9 +38,9 @@ Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L114)
|
|
42
42
|
|
|
43
|
-
The **`length`** read-only property of the
|
|
43
|
+
The **`length`** read-only property of the Storage interface returns the number of data items stored in a given Storage object.
|
|
44
44
|
|
|
45
45
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
|
|
46
46
|
|
|
@@ -58,9 +58,9 @@ The **`length`** read-only property of the `Storage` object.
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L136)
|
|
62
62
|
|
|
63
|
-
The **`clear()`** method of the Storage interface clears all keys stored in a given
|
|
63
|
+
The **`clear()`** method of the Storage interface clears all keys stored in a given Storage object.
|
|
64
64
|
|
|
65
65
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
|
|
66
66
|
|
|
@@ -76,11 +76,11 @@ The **`clear()`** method of the Storage interface clears all keys stored in a gi
|
|
|
76
76
|
|
|
77
77
|
### getItem()
|
|
78
78
|
|
|
79
|
-
> **getItem**(`key`): `
|
|
79
|
+
> **getItem**(`key`): `string` \| `null`
|
|
80
80
|
|
|
81
|
-
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/
|
|
81
|
+
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L118)
|
|
82
82
|
|
|
83
|
-
The **`getItem()`** method of the Storage interface, when passed a key name, will return that key's value, or
|
|
83
|
+
The **`getItem()`** method of the Storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given Storage object.
|
|
84
84
|
|
|
85
85
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
|
|
86
86
|
|
|
@@ -92,7 +92,7 @@ The **`getItem()`** method of the Storage interface, when passed a key name, wil
|
|
|
92
92
|
|
|
93
93
|
#### Returns
|
|
94
94
|
|
|
95
|
-
`
|
|
95
|
+
`string` \| `null`
|
|
96
96
|
|
|
97
97
|
#### Implementation of
|
|
98
98
|
|
|
@@ -102,11 +102,11 @@ The **`getItem()`** method of the Storage interface, when passed a key name, wil
|
|
|
102
102
|
|
|
103
103
|
### key()
|
|
104
104
|
|
|
105
|
-
> **key**(`index`): `
|
|
105
|
+
> **key**(`index`): `string` \| `null`
|
|
106
106
|
|
|
107
|
-
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/
|
|
107
|
+
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L122)
|
|
108
108
|
|
|
109
|
-
The **`key()`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given
|
|
109
|
+
The **`key()`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given Storage object. The order of keys is user-agent defined, so you should not rely on it.
|
|
110
110
|
|
|
111
111
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
|
|
112
112
|
|
|
@@ -118,7 +118,7 @@ The **`key()`** method of the Storage interface, when passed a number n, returns
|
|
|
118
118
|
|
|
119
119
|
#### Returns
|
|
120
120
|
|
|
121
|
-
`
|
|
121
|
+
`string` \| `null`
|
|
122
122
|
|
|
123
123
|
#### Implementation of
|
|
124
124
|
|
|
@@ -130,9 +130,9 @@ The **`key()`** method of the Storage interface, when passed a number n, returns
|
|
|
130
130
|
|
|
131
131
|
> **removeItem**(`key`): `void`
|
|
132
132
|
|
|
133
|
-
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/
|
|
133
|
+
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L126)
|
|
134
134
|
|
|
135
|
-
The **`removeItem()`** method of the Storage interface, when passed a key name, will remove that key from the given
|
|
135
|
+
The **`removeItem()`** method of the Storage interface, when passed a key name, will remove that key from the given Storage object if it exists. The Storage interface of the Web Storage API provides access to a particular domain's session or local storage.
|
|
136
136
|
|
|
137
137
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
|
|
138
138
|
|
|
@@ -156,9 +156,9 @@ The **`removeItem()`** method of the Storage interface, when passed a key name,
|
|
|
156
156
|
|
|
157
157
|
> **setItem**(`key`, `value`): `void`
|
|
158
158
|
|
|
159
|
-
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/
|
|
159
|
+
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L132)
|
|
160
160
|
|
|
161
|
-
The **`setItem()`** method of the Storage interface, when passed a key name and value, will add that key to the given
|
|
161
|
+
The **`setItem()`** method of the Storage interface, when passed a key name and value, will add that key to the given Storage object, or update that key's value if it already exists.
|
|
162
162
|
|
|
163
163
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
|
|
164
164
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/session-storage.service.ts#L6)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -14,19 +14,19 @@ Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/bl
|
|
|
14
14
|
|
|
15
15
|
## Constructors
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Constructor
|
|
18
18
|
|
|
19
|
-
> **new SessionStorageService**():
|
|
19
|
+
> **new SessionStorageService**(): `SessionStorageService`
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/session-storage.service.ts#L7)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
`SessionStorageService`
|
|
26
26
|
|
|
27
27
|
#### Overrides
|
|
28
28
|
|
|
29
|
-
[`StorageService`](StorageService.md).[`constructor`](StorageService.md#
|
|
29
|
+
[`StorageService`](StorageService.md).[`constructor`](StorageService.md#constructor)
|
|
30
30
|
|
|
31
31
|
## Methods
|
|
32
32
|
|
|
@@ -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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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
|
|
@@ -104,9 +104,9 @@ Removes the specified key, e.g.:
|
|
|
104
104
|
|
|
105
105
|
##### key
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
`string` \| `RegExp`
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
key name or regular expression
|
|
110
110
|
|
|
111
111
|
#### Returns
|
|
112
112
|
|
|
@@ -120,9 +120,9 @@ key name or regular expression
|
|
|
120
120
|
|
|
121
121
|
### set()
|
|
122
122
|
|
|
123
|
-
> **set**(`key`, `value`, `expiredAt
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
126
126
|
|
|
127
127
|
#### Parameters
|
|
128
128
|
|
|
@@ -134,11 +134,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
134
134
|
|
|
135
135
|
`any`
|
|
136
136
|
|
|
137
|
-
##### expiredAt
|
|
137
|
+
##### expiredAt?
|
|
138
138
|
|
|
139
139
|
`number` = `0`
|
|
140
140
|
|
|
141
|
-
##### expiredUnit
|
|
141
|
+
##### expiredUnit?
|
|
142
142
|
|
|
143
143
|
[`ExpiredUnit`](../type-aliases/ExpiredUnit.md) = `'d'`
|
|
144
144
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
5
|
[@rxap/ngx-memory](../globals.md) / StorageService
|
|
6
6
|
|
|
7
|
-
# Class:
|
|
7
|
+
# Abstract Class: 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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L12)
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -16,21 +16,21 @@ Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
16
16
|
|
|
17
17
|
## Constructors
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Constructor
|
|
20
20
|
|
|
21
|
-
> `protected` **new StorageService**(`storage`):
|
|
21
|
+
> `protected` **new StorageService**(`storage`): `StorageService`
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L13)
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
27
27
|
##### storage
|
|
28
28
|
|
|
29
|
-
`
|
|
29
|
+
`Storage` \| `null`
|
|
30
30
|
|
|
31
31
|
#### Returns
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
`StorageService`
|
|
34
34
|
|
|
35
35
|
## Methods
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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/6150
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/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
|
|
@@ -96,9 +96,9 @@ Removes the specified key, e.g.:
|
|
|
96
96
|
|
|
97
97
|
##### key
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
`string` \| `RegExp`
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
key name or regular expression
|
|
102
102
|
|
|
103
103
|
#### Returns
|
|
104
104
|
|
|
@@ -108,9 +108,9 @@ key name or regular expression
|
|
|
108
108
|
|
|
109
109
|
### set()
|
|
110
110
|
|
|
111
|
-
> **set**(`key`, `value`, `expiredAt
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
114
114
|
|
|
115
115
|
#### Parameters
|
|
116
116
|
|
|
@@ -122,11 +122,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
122
122
|
|
|
123
123
|
`any`
|
|
124
124
|
|
|
125
|
-
##### expiredAt
|
|
125
|
+
##### expiredAt?
|
|
126
126
|
|
|
127
127
|
`number` = `0`
|
|
128
128
|
|
|
129
|
-
##### expiredUnit
|
|
129
|
+
##### expiredUnit?
|
|
130
130
|
|
|
131
131
|
[`ExpiredUnit`](../type-aliases/ExpiredUnit.md) = `'d'`
|
|
132
132
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: LocalStorage()
|
|
8
8
|
|
|
9
|
-
> **LocalStorage**(`key
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/local-storage.ts#L14)
|
|
12
12
|
|
|
13
13
|
`localStorage` Decorator
|
|
14
14
|
|
|
@@ -34,18 +34,4 @@ Expiration time unit (default: custom [unit: ms])
|
|
|
34
34
|
|
|
35
35
|
## Returns
|
|
36
36
|
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
### Parameters
|
|
40
|
-
|
|
41
|
-
#### target
|
|
42
|
-
|
|
43
|
-
`any`
|
|
44
|
-
|
|
45
|
-
#### propertyName
|
|
46
|
-
|
|
47
|
-
`string`
|
|
48
|
-
|
|
49
|
-
### Returns
|
|
50
|
-
|
|
51
|
-
`void`
|
|
37
|
+
(`target`, `propertyName`) => `void`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: SessionStorage()
|
|
8
8
|
|
|
9
|
-
> **SessionStorage**(`key
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/session-storage.ts#L14)
|
|
12
12
|
|
|
13
13
|
`sessionStorage` Decorator
|
|
14
14
|
|
|
@@ -34,18 +34,4 @@ Expiration time unit (default: custom [unit: ms])
|
|
|
34
34
|
|
|
35
35
|
## Returns
|
|
36
36
|
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
### Parameters
|
|
40
|
-
|
|
41
|
-
#### target
|
|
42
|
-
|
|
43
|
-
`any`
|
|
44
|
-
|
|
45
|
-
#### propertyName
|
|
46
|
-
|
|
47
|
-
`string`
|
|
48
|
-
|
|
49
|
-
### Returns
|
|
50
|
-
|
|
51
|
-
`void`
|
|
37
|
+
(`target`, `propertyName`) => `void`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L20)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
### storage
|
|
16
16
|
|
|
17
|
-
`
|
|
17
|
+
`Storage` \| `null`
|
|
18
18
|
|
|
19
19
|
### key
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L37)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
### storage
|
|
16
16
|
|
|
17
|
-
`
|
|
17
|
+
`Storage` \| `null`
|
|
18
18
|
|
|
19
19
|
### key
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: StorageKey()
|
|
8
8
|
|
|
9
|
-
> **StorageKey**(`storage`, `index`): `
|
|
9
|
+
> **StorageKey**(`storage`, `index`): `string` \| `null`
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L65)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
### storage
|
|
16
16
|
|
|
17
|
-
`
|
|
17
|
+
`Storage` \| `null`
|
|
18
18
|
|
|
19
19
|
### index
|
|
20
20
|
|
|
@@ -22,4 +22,4 @@ Defined in: [storage-utility.ts:65](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
22
22
|
|
|
23
23
|
## Returns
|
|
24
24
|
|
|
25
|
-
`
|
|
25
|
+
`string` \| `null`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@
|
|
|
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/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L58)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
### storage
|
|
16
16
|
|
|
17
|
-
`
|
|
17
|
+
`Storage` \| `null`
|
|
18
18
|
|
|
19
19
|
### key
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: StorageSet()
|
|
8
8
|
|
|
9
|
-
> **StorageSet**(`storage`, `key`, `value`, `expiredAt
|
|
9
|
+
> **StorageSet**(`storage`, `key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L44)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
15
15
|
### storage
|
|
16
16
|
|
|
17
|
-
`
|
|
17
|
+
`Storage` \| `null`
|
|
18
18
|
|
|
19
19
|
### key
|
|
20
20
|
|
|
@@ -24,11 +24,11 @@ Defined in: [storage-utility.ts:44](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
24
24
|
|
|
25
25
|
`any`
|
|
26
26
|
|
|
27
|
-
### expiredAt
|
|
27
|
+
### expiredAt?
|
|
28
28
|
|
|
29
29
|
`number` = `0`
|
|
30
30
|
|
|
31
|
-
### expiredUnit
|
|
31
|
+
### expiredUnit?
|
|
32
32
|
|
|
33
33
|
[`ExpiredUnit`](../type-aliases/ExpiredUnit.md) = `'t'`
|
|
34
34
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# Function: WebStorage()
|
|
8
8
|
|
|
9
|
-
> **WebStorage**(`storage`, `key
|
|
9
|
+
> **WebStorage**(`storage`, `key?`, `expiredAt?`, `expiredUnit?`): (`target`, `propertyName`) => `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/web-storage.ts#L16)
|
|
12
12
|
|
|
13
13
|
**`Internal`**
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/bl
|
|
|
16
16
|
|
|
17
17
|
### storage
|
|
18
18
|
|
|
19
|
-
`
|
|
19
|
+
`Storage` \| `null`
|
|
20
20
|
|
|
21
21
|
### key?
|
|
22
22
|
|
|
@@ -32,18 +32,4 @@ Defined in: [decorators/web-storage.ts:16](https://gitlab.com/rxap/packages/-/bl
|
|
|
32
32
|
|
|
33
33
|
## Returns
|
|
34
34
|
|
|
35
|
-
`
|
|
36
|
-
|
|
37
|
-
### Parameters
|
|
38
|
-
|
|
39
|
-
#### target
|
|
40
|
-
|
|
41
|
-
`any`
|
|
42
|
-
|
|
43
|
-
#### propertyName
|
|
44
|
-
|
|
45
|
-
`string`
|
|
46
|
-
|
|
47
|
-
### Returns
|
|
48
|
-
|
|
49
|
-
`void`
|
|
35
|
+
(`target`, `propertyName`) => `void`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **getExpired**(`val`, `unit`): `number`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:72](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:72](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L72)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**@rxap/ngx-memory
|
|
1
|
+
[**@rxap/ngx-memory v22.0.0-dev.1**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **stringify**(`value`): `string`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:98](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:98](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L98)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|