Basil.js – Smart persistence layer
11–20 of 24 posts
Re: Basil.js – Smart persistence layer
#12Re: Basil.js – Smart persistence layer
#13Re: Basil.js – Smart persistence layer
#14I would recommend Mozilla's localforage https://github.com/mozilla/localForage . Basil.js takes care of abstracting cookie, session, memory, and localstorage storage options, but localforage provides an abstraction for localStorage, WebSQL, or IndexedDB. With modern applications I find that I often want more storage available. Cookie storage is limited at 4Kb, localStorage (5Mb), sessionStorage (same as localStorage)…
Re: Basil.js – Smart persistence layer
#15So is this wrapper over cookie and localStorage that takes care of browser differences and idiosyncrasies for you? Or is it more than that?
Re: Basil.js – Smart persistence layer
#16Re: Basil.js – Smart persistence layer
#17There's a project with the same name out there: http://basiljs.ch/ This made me wonder: how to deal with similar named open source projects? Although the goals of both projects aren't related in any sense it could cause for some confusion...
Re: Basil.js – Smart persistence layer
#18Earlier quoted context omitted.
Why do you need a mechanism for that instead of using arrays?
Instead of getting an array from storage, pushing a new item inside and then storing it again, it could be nice to have directly this small mechaniam built in to avoid this logic in the application.