ObjectCache icon indicating copy to clipboard operation
ObjectCache copied to clipboard

runtimeCache

Open cagnulein opened this issue 10 years ago • 2 comments

Hi, great project! I'm working with images and documents, is it possible to turn off runtimeCache because i receive a lot of OOM. Let me know

cagnulein avatar Jan 11 '16 19:01 cagnulein

An excellent point. This should at very least be changed to an LRU cache with a size constraint.

On Mon, Jan 11, 2016 at 1:26 PM, cagnulein [email protected] wrote:

Hi, great project! I'm working with images and documents, is it possible to turn off runtimeCache because i receive a lot of OOM Let me know

— Reply to this email directly or view it on GitHub https://github.com/iainconnor/ObjectCache/issues/12.

iainconnor avatar Jan 12 '16 18:01 iainconnor

I've partially solved: my issue was against JSOUP document and images.

  • JSOP Document: i convert it to string (.html()) and i save this string with your library. Works great!
  • Images: i decided to save it as file externally without using your library. I don't need to cache in memory.

cagnulein avatar Jan 13 '16 12:01 cagnulein