Skip to content

add local-expires#35

Open
limomx wants to merge 6 commits into
tsironis:masterfrom
limomx:master
Open

add local-expires#35
limomx wants to merge 6 commits into
tsironis:masterfrom
limomx:master

Conversation

@limomx

@limomx limomx commented Aug 25, 2016

Copy link
Copy Markdown

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
Comment thread specs/lockrSpecs.js

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

Copy link
Copy Markdown
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
Copy Markdown
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

tsironis commented Aug 26, 2016

Copy link
Copy Markdown
Owner

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

tsironis commented Sep 2, 2016

Copy link
Copy Markdown
Owner

@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