https://github.com/ajay-develops/client-side-data-storage
https://github.com/ajay-develops/client-side-data-storage
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajay-develops/client-side-data-storage
- Owner: ajay-develops
- Created: 2022-08-15T15:52:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-16T18:46:45.000Z (almost 4 years ago)
- Last Synced: 2025-05-03T19:19:41.484Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### What is Client Side Storage ?
JavaScript APIs that allow you to store data on the client
- cookies - don't use cookies unless you have to
### Client Side Storages
- Web Storage APIs - local storage , session storage(until you close the browser).
- IndexedDB -
- Service Workers(offline) and Cache API
#### other client storage options -
- LocalForage
- Dexie
- Zango
- JsStore
### A few facts
- local storage stays as long as you want
- session storage is cleared when you close the browser
- both use key value pairs
- No objects and array allowed
- Domain Specific
### Web Storage Methods
- setItem("key","value)
- getItem("key")
- removeItem("key")