Skip to content

Commit

Permalink
Add: methods returns
Browse files Browse the repository at this point in the history
  • Loading branch information
superKalo committed Sep 20, 2017
1 parent c31bdcd commit 3c8291b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,19 @@ None.
});
```
- **`.invalidateData()`**
- **`.invalidateData()`** | Returns: `Promise`
Invalidates data by setting a flag. It **doesn't delete the data from the storage**. However, the very next time when the `.getData()` method is invoked, it will directly call the server to get fresh data.

- **`.clearData()`**
- **`.clearData()`** | Returns: `Promise`

Deletes the data from the storage. Therefore, the very next time when the `.getData()` method is invoked, it will directly call the server to get fresh data.

- **`.initSyncer()`**
- **`.initSyncer()`** | Returns: `void`

Initiates a setInterval, which will countdown to the point when the data is out of date (based on the `cacheLimit` value) and will trigger a server request to get fresh data.

- **`.destroySyncer()`**
- **`.destroySyncer()`** | Returns: `void`

Destroys the setInterval, initiated by the `.initSyncer()` method.

Expand Down

0 comments on commit 3c8291b

Please sign in to comment.