# In memory IPFS to prevent use of IndexedDb

**URL:** <https://discuss.ipfs.tech/t/in-memory-ipfs-to-prevent-use-of-indexeddb/13987>\
**Category:** js-ipfs\
**Tags:** js-ipfs\
**Created:** [April 14, 2022, 1:28am UTC](https://discuss.ipfs.tech/t/in-memory-ipfs-to-prevent-use-of-indexeddb/13987 "2022-04-14T01:28:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![G4den](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/g4den/32/6306_2.png) [@G4den](https://discuss.ipfs.tech/u/G4den)\
**Post date:** [April 14, 2022, 1:28am UTC](https://discuss.ipfs.tech/t/in-memory-ipfs-to-prevent-use-of-indexeddb/13987/1 "2022-04-14T01:28:14Z")

</div>

Hello

I wish to use ipfs-js within an iframe, which have restricted permissions  
That means i cannot use IndexedDB, which is used internally by ipfs.  
How can i switch to an in memory cache instead of indexeddb?  
Is there an easy way to do it, or would i need to monkey patch it?

---

<div class="post-metadata">

**Author:** ![chrispanag](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/chrispanag/32/5192_2.png) [@chrispanag](https://discuss.ipfs.tech/u/chrispanag)\
**Post date:** [June 24, 2022, 11:13am UTC](https://discuss.ipfs.tech/t/in-memory-ipfs-to-prevent-use-of-indexeddb/13987/2 "2022-06-24T11:13:24Z")

</div>

Pinging this up. Is there any way to change the default store method?
