Coder Social home page Coder Social logo

Comments (3)

ocombe avatar ocombe commented on September 14, 2024

I'm not entirely sure of what you mean ?
Localforage might use localstorage if indexedDB or webSQL ain't available, and localstorage only handles key-values.
My module will add a prefix to be sure that your data can be manipulated independently from other data (ie: you won't wipe other libs localstorage data).
If you need to store different things, use different keys.

If you are referring to the way indexedDB stores its data with a database, multiple tables with multiple keys in each, it is not possible because we need to make sure that it would work just the same for localstorage. Localforage will only use one database and one table (but multiple keys, of course).

from angular-localforage.

jimthedev avatar jimthedev commented on September 14, 2024

@ocombe Ok gotcha. I will just use keys instead. I thought maybe there was the potential to use one db but multiple tables but was wrong. Thanks for the help and this awesome project. One unrelated question, have you used a cache with this at all? Something similar to angular-cache or other cache projects?

from angular-localforage.

ocombe avatar ocombe commented on September 14, 2024

I haven't used any cache no, I think it should be something devs need to implement on their own because I don't know what their needs are :)
And thanks for the credit but most of the hard work has been done by @tofumatt in https://github.com/mozilla/localForage, this is (almost) just an angular wrapper :)

from angular-localforage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.