Skip to content
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

add local-expires #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

add local-expires #35

wants to merge 6 commits into from

Conversation

limomx
Copy link

@limomx limomx commented Aug 25, 2016

We can set localstorage expiration time, defaults to 10 years.

tom and others added 4 commits July 21, 2016 18:59
You can set localstorage  expiration time, defaults to 10 years
travis
});

describe('Lockr.set', function () {
it('saves a key-value pair in the localStorage', function () {
describe('Lockr.set', function() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lamentchina please add a functional test using set and expire-time argument.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I will add a test after "describe 'with pre-existing data' "

@tsironis
Copy link
Owner

tsironis commented Aug 26, 2016

Wow great work! What happens when expiration time is up? Should we remove the object entirely from localStorage? cc @eavgerinos

add the test for expiration time
merge tsironis/master
@tsironis
Copy link
Owner

tsironis commented Sep 2, 2016

@eavgerinos can you do an additional code review so we merge it to master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants