Hacker News new | ask | show | jobs
by cobalt2760 4352 days ago
That seems promising. Would be great to have FIFO and LIFO storage mechanism here like in redis!
1 comments

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.
Hmm, that's true. The library could monkey patch .push (etc.), but it wouldn't support setting the property directly with [index] (until Object.observe is mainstream enough).