Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Added persistance loading and automatic expiry #3

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

Conversation

piotrjaw
Copy link

@piotrjaw piotrjaw commented Aug 2, 2018

No description provided.

@piotrjaw piotrjaw self-assigned this Aug 2, 2018
@@ -389,6 +389,9 @@ car.set({ engine: '746cc', brand: 'Syrena' });
NOTE: One extra parameter is always added to modelData: `lastStorageUpdateTimestamp`.
Feel free to use it for syncing data between tabs.

## SETUP: `persistencePeriod: number`

A number of milliseconds that the model should be kept. It will be removed when trying to load it from storage for the first time after expiration
Copy link
Member

Choose a reason for hiding this comment

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

could you explain, what is the START time ? last write? last read?

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

Successfully merging this pull request may close these issues.

2 participants