@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
package/docs/markdown/globals.md
CHANGED
|
@@ -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
|
# Type Alias: ExpiredUnit
|
|
8
8
|
|
|
9
|
-
> **ExpiredUnit
|
|
9
|
+
> **ExpiredUnit** = `"s"` \| `"m"` \| `"h"` \| `"d"` \| `"w"` \| `"y"` \| `"t"`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L11)
|
|
12
12
|
|
|
13
13
|
Expiration time unit
|
|
14
14
|
s: seconds
|
|
@@ -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
|
> `const` **isBrowser**: `boolean`
|
|
10
10
|
|
|
11
|
-
Defined in: [storage-utility.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [storage-utility.ts:18](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L18)
|
|
12
12
|
|
|
13
13
|
Determining if an Angular application is rendered in the browser
|
|
14
14
|
The Angular `PLATFORM_ID` identifier cannot be used directly by the `decorator`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: EphemeralStorageService
|
|
4
4
|
|
|
5
|
-
Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/ephemeral-storage.service.ts#L6)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -10,19 +10,19 @@ Defined in: [ephemeral-storage.service.ts:6](https://gitlab.com/rxap/packages/-/
|
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Constructor
|
|
14
14
|
|
|
15
|
-
> **new EphemeralStorageService**():
|
|
15
|
+
> **new EphemeralStorageService**(): `EphemeralStorageService`
|
|
16
16
|
|
|
17
|
-
Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/ephemeral-storage.service.ts#L8)
|
|
18
18
|
|
|
19
19
|
#### Returns
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
`EphemeralStorageService`
|
|
22
22
|
|
|
23
23
|
#### Overrides
|
|
24
24
|
|
|
25
|
-
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#
|
|
25
|
+
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#constructor)
|
|
26
26
|
|
|
27
27
|
## Methods
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [ephemeral-storage.service.ts:8](https://gitlab.com/rxap/packages/-/
|
|
|
30
30
|
|
|
31
31
|
> **clear**(): `void`
|
|
32
32
|
|
|
33
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
34
34
|
|
|
35
35
|
#### Returns
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
46
46
|
|
|
47
47
|
> **get**(`key`): `any`
|
|
48
48
|
|
|
49
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
50
50
|
|
|
51
51
|
#### Parameters
|
|
52
52
|
|
|
@@ -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
|
|
|
@@ -90,7 +90,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
90
90
|
|
|
91
91
|
> **remove**(`key`): `void`
|
|
92
92
|
|
|
93
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
93
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
94
94
|
|
|
95
95
|
Removes the specified key, e.g.:
|
|
96
96
|
- `remove('key')` Remove `key` key
|
|
@@ -100,9 +100,9 @@ Removes the specified key, e.g.:
|
|
|
100
100
|
|
|
101
101
|
##### key
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
`string` \| `RegExp`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
key name or regular expression
|
|
106
106
|
|
|
107
107
|
#### Returns
|
|
108
108
|
|
|
@@ -116,9 +116,9 @@ key name or regular expression
|
|
|
116
116
|
|
|
117
117
|
### set()
|
|
118
118
|
|
|
119
|
-
> **set**(`key`, `value`, `expiredAt
|
|
119
|
+
> **set**(`key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
120
120
|
|
|
121
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
121
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
122
122
|
|
|
123
123
|
#### Parameters
|
|
124
124
|
|
|
@@ -130,11 +130,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
130
130
|
|
|
131
131
|
`any`
|
|
132
132
|
|
|
133
|
-
##### expiredAt
|
|
133
|
+
##### expiredAt?
|
|
134
134
|
|
|
135
135
|
`number` = `0`
|
|
136
136
|
|
|
137
|
-
##### expiredUnit
|
|
137
|
+
##### expiredUnit?
|
|
138
138
|
|
|
139
139
|
[`ExpiredUnit`](../wiki/TypeAlias.ExpiredUnit) = `'d'`
|
|
140
140
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: LocalStorageService
|
|
4
4
|
|
|
5
|
-
Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/local-storage.service.ts#L6)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -10,19 +10,19 @@ Defined in: [local-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob
|
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Constructor
|
|
14
14
|
|
|
15
|
-
> **new LocalStorageService**():
|
|
15
|
+
> **new LocalStorageService**(): `LocalStorageService`
|
|
16
16
|
|
|
17
|
-
Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/local-storage.service.ts#L7)
|
|
18
18
|
|
|
19
19
|
#### Returns
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
`LocalStorageService`
|
|
22
22
|
|
|
23
23
|
#### Overrides
|
|
24
24
|
|
|
25
|
-
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#
|
|
25
|
+
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#constructor)
|
|
26
26
|
|
|
27
27
|
## Methods
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [local-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob
|
|
|
30
30
|
|
|
31
31
|
> **clear**(): `void`
|
|
32
32
|
|
|
33
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
34
34
|
|
|
35
35
|
#### Returns
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
46
46
|
|
|
47
47
|
> **get**(`key`): `any`
|
|
48
48
|
|
|
49
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
50
50
|
|
|
51
51
|
#### Parameters
|
|
52
52
|
|
|
@@ -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
|
|
|
@@ -90,7 +90,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
90
90
|
|
|
91
91
|
> **remove**(`key`): `void`
|
|
92
92
|
|
|
93
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
93
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
94
94
|
|
|
95
95
|
Removes the specified key, e.g.:
|
|
96
96
|
- `remove('key')` Remove `key` key
|
|
@@ -100,9 +100,9 @@ Removes the specified key, e.g.:
|
|
|
100
100
|
|
|
101
101
|
##### key
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
`string` \| `RegExp`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
key name or regular expression
|
|
106
106
|
|
|
107
107
|
#### Returns
|
|
108
108
|
|
|
@@ -116,9 +116,9 @@ key name or regular expression
|
|
|
116
116
|
|
|
117
117
|
### set()
|
|
118
118
|
|
|
119
|
-
> **set**(`key`, `value`, `expiredAt
|
|
119
|
+
> **set**(`key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
120
120
|
|
|
121
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
121
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
122
122
|
|
|
123
123
|
#### Parameters
|
|
124
124
|
|
|
@@ -130,11 +130,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
130
130
|
|
|
131
131
|
`any`
|
|
132
132
|
|
|
133
|
-
##### expiredAt
|
|
133
|
+
##### expiredAt?
|
|
134
134
|
|
|
135
135
|
`number` = `0`
|
|
136
136
|
|
|
137
|
-
##### expiredUnit
|
|
137
|
+
##### expiredUnit?
|
|
138
138
|
|
|
139
139
|
[`ExpiredUnit`](../wiki/TypeAlias.ExpiredUnit) = `'d'`
|
|
140
140
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: MockStorage
|
|
4
4
|
|
|
5
|
-
Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L110)
|
|
6
6
|
|
|
7
7
|
## Implements
|
|
8
8
|
|
|
@@ -10,13 +10,13 @@ Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Constructor
|
|
14
14
|
|
|
15
|
-
> **new MockStorage**():
|
|
15
|
+
> **new MockStorage**(): `MockStorage`
|
|
16
16
|
|
|
17
17
|
#### Returns
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
`MockStorage`
|
|
20
20
|
|
|
21
21
|
## Properties
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ Defined in: [storage-utility.ts:110](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
24
24
|
|
|
25
25
|
> **cache**: `Record`\<`string`, `string`\> = `{}`
|
|
26
26
|
|
|
27
|
-
Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/
|
|
27
|
+
Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L112)
|
|
28
28
|
|
|
29
29
|
## Accessors
|
|
30
30
|
|
|
@@ -34,9 +34,9 @@ Defined in: [storage-utility.ts:112](https://gitlab.com/rxap/packages/-/blob/615
|
|
|
34
34
|
|
|
35
35
|
> **get** **length**(): `number`
|
|
36
36
|
|
|
37
|
-
Defined in: [storage-utility.ts:114](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [storage-utility.ts:114](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L114)
|
|
38
38
|
|
|
39
|
-
The **`length`** read-only property of the
|
|
39
|
+
The **`length`** read-only property of the Storage interface returns the number of data items stored in a given Storage object.
|
|
40
40
|
|
|
41
41
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
|
|
42
42
|
|
|
@@ -54,9 +54,9 @@ The **`length`** read-only property of the `Storage` object.
|
|
|
54
54
|
|
|
55
55
|
> **clear**(): `void`
|
|
56
56
|
|
|
57
|
-
Defined in: [storage-utility.ts:136](https://gitlab.com/rxap/packages/-/blob/
|
|
57
|
+
Defined in: [storage-utility.ts:136](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L136)
|
|
58
58
|
|
|
59
|
-
The **`clear()`** method of the Storage interface clears all keys stored in a given
|
|
59
|
+
The **`clear()`** method of the Storage interface clears all keys stored in a given Storage object.
|
|
60
60
|
|
|
61
61
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
|
|
62
62
|
|
|
@@ -72,11 +72,11 @@ The **`clear()`** method of the Storage interface clears all keys stored in a gi
|
|
|
72
72
|
|
|
73
73
|
### getItem()
|
|
74
74
|
|
|
75
|
-
> **getItem**(`key`): `
|
|
75
|
+
> **getItem**(`key`): `string` \| `null`
|
|
76
76
|
|
|
77
|
-
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/
|
|
77
|
+
Defined in: [storage-utility.ts:118](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L118)
|
|
78
78
|
|
|
79
|
-
The **`getItem()`** method of the Storage interface, when passed a key name, will return that key's value, or
|
|
79
|
+
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.
|
|
80
80
|
|
|
81
81
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
|
|
82
82
|
|
|
@@ -88,7 +88,7 @@ The **`getItem()`** method of the Storage interface, when passed a key name, wil
|
|
|
88
88
|
|
|
89
89
|
#### Returns
|
|
90
90
|
|
|
91
|
-
`
|
|
91
|
+
`string` \| `null`
|
|
92
92
|
|
|
93
93
|
#### Implementation of
|
|
94
94
|
|
|
@@ -98,11 +98,11 @@ The **`getItem()`** method of the Storage interface, when passed a key name, wil
|
|
|
98
98
|
|
|
99
99
|
### key()
|
|
100
100
|
|
|
101
|
-
> **key**(`index`): `
|
|
101
|
+
> **key**(`index`): `string` \| `null`
|
|
102
102
|
|
|
103
|
-
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/
|
|
103
|
+
Defined in: [storage-utility.ts:122](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L122)
|
|
104
104
|
|
|
105
|
-
The **`key()`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given
|
|
105
|
+
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.
|
|
106
106
|
|
|
107
107
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
|
|
108
108
|
|
|
@@ -114,7 +114,7 @@ The **`key()`** method of the Storage interface, when passed a number n, returns
|
|
|
114
114
|
|
|
115
115
|
#### Returns
|
|
116
116
|
|
|
117
|
-
`
|
|
117
|
+
`string` \| `null`
|
|
118
118
|
|
|
119
119
|
#### Implementation of
|
|
120
120
|
|
|
@@ -126,9 +126,9 @@ The **`key()`** method of the Storage interface, when passed a number n, returns
|
|
|
126
126
|
|
|
127
127
|
> **removeItem**(`key`): `void`
|
|
128
128
|
|
|
129
|
-
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/
|
|
129
|
+
Defined in: [storage-utility.ts:126](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L126)
|
|
130
130
|
|
|
131
|
-
The **`removeItem()`** method of the Storage interface, when passed a key name, will remove that key from the given
|
|
131
|
+
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.
|
|
132
132
|
|
|
133
133
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
|
|
134
134
|
|
|
@@ -152,9 +152,9 @@ The **`removeItem()`** method of the Storage interface, when passed a key name,
|
|
|
152
152
|
|
|
153
153
|
> **setItem**(`key`, `value`): `void`
|
|
154
154
|
|
|
155
|
-
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/
|
|
155
|
+
Defined in: [storage-utility.ts:132](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage-utility.ts#L132)
|
|
156
156
|
|
|
157
|
-
The **`setItem()`** method of the Storage interface, when passed a key name and value, will add that key to the given
|
|
157
|
+
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.
|
|
158
158
|
|
|
159
159
|
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
|
|
160
160
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: SessionStorageService
|
|
4
4
|
|
|
5
|
-
Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/session-storage.service.ts#L6)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -10,19 +10,19 @@ Defined in: [session-storage.service.ts:6](https://gitlab.com/rxap/packages/-/bl
|
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Constructor
|
|
14
14
|
|
|
15
|
-
> **new SessionStorageService**():
|
|
15
|
+
> **new SessionStorageService**(): `SessionStorageService`
|
|
16
16
|
|
|
17
|
-
Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/session-storage.service.ts#L7)
|
|
18
18
|
|
|
19
19
|
#### Returns
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
`SessionStorageService`
|
|
22
22
|
|
|
23
23
|
#### Overrides
|
|
24
24
|
|
|
25
|
-
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#
|
|
25
|
+
[`StorageService`](../wiki/Class.StorageService).[`constructor`](../wiki/Class.StorageService#constructor)
|
|
26
26
|
|
|
27
27
|
## Methods
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [session-storage.service.ts:7](https://gitlab.com/rxap/packages/-/bl
|
|
|
30
30
|
|
|
31
31
|
> **clear**(): `void`
|
|
32
32
|
|
|
33
|
-
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L50)
|
|
34
34
|
|
|
35
35
|
#### Returns
|
|
36
36
|
|
|
@@ -46,7 +46,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
46
46
|
|
|
47
47
|
> **get**(`key`): `any`
|
|
48
48
|
|
|
49
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
50
50
|
|
|
51
51
|
#### Parameters
|
|
52
52
|
|
|
@@ -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
|
|
|
@@ -90,7 +90,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
90
90
|
|
|
91
91
|
> **remove**(`key`): `void`
|
|
92
92
|
|
|
93
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
93
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
94
94
|
|
|
95
95
|
Removes the specified key, e.g.:
|
|
96
96
|
- `remove('key')` Remove `key` key
|
|
@@ -100,9 +100,9 @@ Removes the specified key, e.g.:
|
|
|
100
100
|
|
|
101
101
|
##### key
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
`string` \| `RegExp`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
key name or regular expression
|
|
106
106
|
|
|
107
107
|
#### Returns
|
|
108
108
|
|
|
@@ -116,9 +116,9 @@ key name or regular expression
|
|
|
116
116
|
|
|
117
117
|
### set()
|
|
118
118
|
|
|
119
|
-
> **set**(`key`, `value`, `expiredAt
|
|
119
|
+
> **set**(`key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
120
120
|
|
|
121
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
121
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
122
122
|
|
|
123
123
|
#### Parameters
|
|
124
124
|
|
|
@@ -130,11 +130,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
130
130
|
|
|
131
131
|
`any`
|
|
132
132
|
|
|
133
|
-
##### expiredAt
|
|
133
|
+
##### expiredAt?
|
|
134
134
|
|
|
135
135
|
`number` = `0`
|
|
136
136
|
|
|
137
|
-
##### expiredUnit
|
|
137
|
+
##### expiredUnit?
|
|
138
138
|
|
|
139
139
|
[`ExpiredUnit`](../wiki/TypeAlias.ExpiredUnit) = `'d'`
|
|
140
140
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[@rxap/ngx-memory](../wiki/globals) / StorageService
|
|
2
2
|
|
|
3
|
-
# Class:
|
|
3
|
+
# Abstract Class: StorageService
|
|
4
4
|
|
|
5
|
-
Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L12)
|
|
6
6
|
|
|
7
7
|
## Extended by
|
|
8
8
|
|
|
@@ -12,21 +12,21 @@ Defined in: [storage.service.ts:12](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
12
12
|
|
|
13
13
|
## Constructors
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Constructor
|
|
16
16
|
|
|
17
|
-
> `protected` **new StorageService**(`storage`):
|
|
17
|
+
> `protected` **new StorageService**(`storage`): `StorageService`
|
|
18
18
|
|
|
19
|
-
Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
19
|
+
Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L13)
|
|
20
20
|
|
|
21
21
|
#### Parameters
|
|
22
22
|
|
|
23
23
|
##### storage
|
|
24
24
|
|
|
25
|
-
`
|
|
25
|
+
`Storage` \| `null`
|
|
26
26
|
|
|
27
27
|
#### Returns
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
`StorageService`
|
|
30
30
|
|
|
31
31
|
## Methods
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [storage.service.ts:13](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
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
|
|
|
@@ -46,7 +46,7 @@ Defined in: [storage.service.ts:50](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
46
46
|
|
|
47
47
|
> **get**(`key`): `any`
|
|
48
48
|
|
|
49
|
-
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
49
|
+
Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L19)
|
|
50
50
|
|
|
51
51
|
#### Parameters
|
|
52
52
|
|
|
@@ -64,7 +64,7 @@ Defined in: [storage.service.ts:19](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
64
64
|
|
|
65
65
|
> **has**(`key`): `boolean`
|
|
66
66
|
|
|
67
|
-
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
67
|
+
Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L15)
|
|
68
68
|
|
|
69
69
|
#### Parameters
|
|
70
70
|
|
|
@@ -82,7 +82,7 @@ Defined in: [storage.service.ts:15](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
82
82
|
|
|
83
83
|
> **remove**(`key`): `void`
|
|
84
84
|
|
|
85
|
-
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
85
|
+
Defined in: [storage.service.ts:33](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L33)
|
|
86
86
|
|
|
87
87
|
Removes the specified key, e.g.:
|
|
88
88
|
- `remove('key')` Remove `key` key
|
|
@@ -92,9 +92,9 @@ Removes the specified key, e.g.:
|
|
|
92
92
|
|
|
93
93
|
##### key
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
`string` \| `RegExp`
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
key name or regular expression
|
|
98
98
|
|
|
99
99
|
#### Returns
|
|
100
100
|
|
|
@@ -104,9 +104,9 @@ key name or regular expression
|
|
|
104
104
|
|
|
105
105
|
### set()
|
|
106
106
|
|
|
107
|
-
> **set**(`key`, `value`, `expiredAt
|
|
107
|
+
> **set**(`key`, `value`, `expiredAt?`, `expiredUnit?`): `void`
|
|
108
108
|
|
|
109
|
-
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
109
|
+
Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/storage.service.ts#L23)
|
|
110
110
|
|
|
111
111
|
#### Parameters
|
|
112
112
|
|
|
@@ -118,11 +118,11 @@ Defined in: [storage.service.ts:23](https://gitlab.com/rxap/packages/-/blob/6150
|
|
|
118
118
|
|
|
119
119
|
`any`
|
|
120
120
|
|
|
121
|
-
##### expiredAt
|
|
121
|
+
##### expiredAt?
|
|
122
122
|
|
|
123
123
|
`number` = `0`
|
|
124
124
|
|
|
125
|
-
##### expiredUnit
|
|
125
|
+
##### expiredUnit?
|
|
126
126
|
|
|
127
127
|
[`ExpiredUnit`](../wiki/TypeAlias.ExpiredUnit) = `'d'`
|
|
128
128
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Function: LocalStorage()
|
|
4
4
|
|
|
5
|
-
> **LocalStorage**(`key
|
|
5
|
+
> **LocalStorage**(`key?`, `expiredAt?`, `expiredUnit?`): (`target`, `propertyName`) => `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [decorators/local-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [decorators/local-storage.ts:14](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/memory/src/lib/decorators/local-storage.ts#L14)
|
|
8
8
|
|
|
9
9
|
`localStorage` Decorator
|
|
10
10
|
|
|
@@ -30,18 +30,4 @@ Expiration time unit (default: custom [unit: ms])
|
|
|
30
30
|
|
|
31
31
|
## Returns
|
|
32
32
|
|
|
33
|
-
`
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
#### target
|
|
38
|
-
|
|
39
|
-
`any`
|
|
40
|
-
|
|
41
|
-
#### propertyName
|
|
42
|
-
|
|
43
|
-
`string`
|
|
44
|
-
|
|
45
|
-
### Returns
|
|
46
|
-
|
|
47
|
-
`void`
|
|
33
|
+
(`target`, `propertyName`) => `void`
|