Giter Club home page Giter Club logo

Comments (7)

nektro avatar nektro commented on September 1, 2024 1

do you have a fuller example of what you're trying to accomplish and how the current api falls short?

from html.

anuragvohraec avatar anuragvohraec commented on September 1, 2024

do you have a fuller example of what you're trying to accomplish and how the current api falls short?

I wanted to fetch out a range of values from Storage interface. For example get me all values in between fruit-apple and fruit-orange.
One can't do that with the current Storage interface as it allows only pulling out single value using getItem.

So I suggest we should have a feature to pull out range of values out of Storage interface.

from html.

annevk avatar annevk commented on September 1, 2024

Are there any libraries that offer this functionality and how popular are they?

In general though I would not expect us to add much new functionality to localStorage or sessionStorage as they unfortunately offer synchronous I/O which is not great for performance.

from html.

smaug---- avatar smaug---- commented on September 1, 2024

Indeed. I'd rather have some reasonable API on top of IndexedDB, or make IndexedDB itself easy to use.

from html.

anuragvohraec avatar anuragvohraec commented on September 1, 2024

Are there any libraries that offer this functionality and how popular are they?

There are no libs to work on top of Storage api. As the underlying lib do not have any kind of iterators or complex search feature themselves.

from html.

anuragvohraec avatar anuragvohraec commented on September 1, 2024

Indeed. I'd rather have some reasonable API on top of IndexedDB, or make IndexedDB itself easy to use.

yeah IDB can be used, but cases where Storage(local/session) is needed there in we do not have some complex search features to help out.

from html.

domenic avatar domenic commented on September 1, 2024

Let's close this, as we have signals from multiple implementers that the sync storage APIs are not going to be extended.

from html.

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.