简体   繁体   中英

Is localStorage/sessionStorage considered NoSQL database?

according to https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API , there are essentially two Web Storage APIs, localStorage and sessionStorage, they are used to store key/value pairs.

And I learned that according to https://aws.amazon.com/nosql/key-value/

A key-value database is a type of nonrelational database that uses a simple key-value method to store data.

So my question is, is localStorage/sessionStorage considered NoSQL database?

No it's not a database. It's just a variable associated to the window object. In the AWS text, it says "a key value database is a...", but a variable is not a database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM