Adding control of expiration time in localstorage. Issue #133.#153
Adding control of expiration time in localstorage. Issue #133.#153rodrigo-morais wants to merge 2 commits intogrevory:masterfrom
Conversation
|
Ah.. I got it. |
|
If everyone think necessary, I can clear the key in localStorage. I didn't that because in my use case was unnecessary and I not thought about. |
|
this is very useful! (y) |
|
Is this TTL support basically? if so, I rolled my own but would love to use the "built in" one. |
|
Would be awsome to have this. |
|
Hello, I added for expiration data the option to remove key from localStorage. For example: The standard of remove flag is false. If not pass anything in parameter the key won't be remove. Thanks. |
|
I need this. |
|
I want this feature. |
|
Is anyone interested in fixing up this PR? This seems to be very desired among users. |
Hello,
I created a control to expiration time in localstorage.
For example:
localStorageService.get('key', 300000); -> Verify if expiration time happened for 5 minutes in milliseconds.
Important, when need use localstorage against sessionstorage and must control expiration time.
Thanks.