browser-module-cache
browser-module-cache copied to clipboard
Transaction Errors
When using the level-js integration a number of transaction errors are encountered when attempting to get a cache key. From having a look at the code I think this could be mitigated by checking whether the underlying is db is ready before a get (or put operation).
From digging into the requirebin comments, it looks like @maxogden has also hit this problem:
https://github.com/maxogden/requirebin/blob/master/index.js#L177-L178
A slightly unfortunate workaround if using with browser-module-sandbox is to pass cacheOpts:
var sandbox = Sandbox({cacheOpts: {inMemory: true}});