fastcache icon indicating copy to clipboard operation
fastcache copied to clipboard

A way to completly disable auto eviction.

Open maxjust opened this issue 6 years ago • 2 comments

Looking for fast cache without auto eviction by time or filling. Does your cache have any ways to make all data persistent in cache while Delete method is not triggered?

maxjust avatar Jul 25 '19 08:07 maxjust

Unfortunately this isn't possible by design, since this may result in out of memory errors when a lot of items are added to the cache and none are deleted.

valyala avatar Jul 25 '19 21:07 valyala

In my opinion be cool (like some mode) to implement "stop write" returned error when cache is full and we try to put new record. In that case fastcache can be used like temporary fast persistent storage with consistency garantee.

maxjust avatar Jul 28 '19 15:07 maxjust