-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding control of expiration time in localstorage. Issue #133. #153
base: master
Are you sure you want to change the base?
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.