browser-module-cache icon indicating copy to clipboard operation
browser-module-cache copied to clipboard

Transaction Errors

Open DamonOehlman opened this issue 11 years ago • 1 comments

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

DamonOehlman avatar May 19 '14 12:05 DamonOehlman

A slightly unfortunate workaround if using with browser-module-sandbox is to pass cacheOpts:

var sandbox = Sandbox({cacheOpts: {inMemory: true}});

rreusser avatar Oct 13 '16 22:10 rreusser