Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?

Here are some of the details: Support for Web Storage API

My first thought was some sort caching mechanism. Like, if I have a script that fetches data from the internets or takes a very long time to produce some piece of data, I could use localStorage…


This content originally appeared on DEV Community and was authored by Heiker

Here are some of the details: Support for Web Storage API

My first thought was some sort caching mechanism. Like, if I have a script that fetches data from the internets or takes a very long time to produce some piece of data, I could use localStorage to save that data. Then if someone executes the script again in a very short amount of time, I could give them the cache in localStorage.

My second thought was some CRUD stuff. Something like zoxide came to mind. I could make (and I actually did) a glorified CRUD utility that stores the path to the most frecuently visited directories, and then query that and use the result to "jump" quickly to that location.

Beyond that I'm having a hard time imagining how this could be useful. I'm not saying it's useless, having a tiny database can be handy. I just don't know when to use it.


This content originally appeared on DEV Community and was authored by Heiker


Print Share Comment Cite Upload Translate Updates
APA

Heiker | Sciencx (2021-05-18T22:47:17+00:00) Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?. Retrieved from https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/

MLA
" » Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?." Heiker | Sciencx - Tuesday May 18, 2021, https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/
HARVARD
Heiker | Sciencx Tuesday May 18, 2021 » Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?., viewed ,<https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/>
VANCOUVER
Heiker | Sciencx - » Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/
CHICAGO
" » Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?." Heiker | Sciencx - Accessed . https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/
IEEE
" » Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature?." Heiker | Sciencx [Online]. Available: https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/. [Accessed: ]
rf:citation
» Deno v1.10 has added support for localStorage. What do you think would be a good use case for this feature? | Heiker | Sciencx | https://www.scien.cx/2021/05/18/deno-v1-10-has-added-support-for-localstorage-what-do-you-think-would-be-a-good-use-case-for-this-feature/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.