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

Feature/localforage #146

Closed
wants to merge 4 commits into from
Closed

Conversation

toadkicker
Copy link

Added localforage support to angular cache

@toadkicker
Copy link
Author

FWIW your contributions.md says to merge to develop, but that branch doesn't exist.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 17710a1 on toadkicker:feature/localforage into * on jmdobry:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 91bf9fa on toadkicker:feature/localforage into * on jmdobry:master*.

@bennekrouf
Copy link

+1

@jmdobry
Copy link
Owner

jmdobry commented Feb 2, 2015

I'm sorry, but this will not work. The API for angular-cache is synchronous, while localforage is asynchronous, returning promises or requiring callbacks. Angular-cache expects $$storage.getItem to synchronously return stringified JSON, so angular-cache can synchronously return the parsed JSON.

For more advanced storage options, take a look at js-data

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.

4 participants