Does Dexie support any in-memory data storage or caching? #1650
-
Hey all, I've been using Dexie for quite some time and really enjoy the product. I know there are some packages out there right now that do similar things, but I do like Dexie a bit, so am not motivated to move. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Thanks for sharing your thoughts! Dexie 4 is planned for start using caching for non-transactional readonly queries. I've written a few words about it on the road map page. Having dexie being backed by in-memory data only is also a valid use case for testing etc. Today this can be accomplished using fake-indexeddb but it would probably be nice if it was built-in, or if there would be possible to do an addon for it, such a a memory-backed DBCore (would be possible to implement already, but it's not possible to replace the database opening / upgrading parts yet). |
Beta Was this translation helpful? Give feedback.
Hi! Thanks for sharing your thoughts!
Dexie 4 is planned for start using caching for non-transactional readonly queries. I've written a few words about it on the road map page. Having dexie being backed by in-memory data only is also a valid use case for testing etc. Today this can be accomplished using fake-indexeddb but it would probably be nice if it was built-in, or if there would be possible to do an addon for it, such a a memory-backed DBCore (would be possible to implement already, but it's not possible to replace the database opening / upgrading parts yet).