cacheman icon indicating copy to clipboard operation
cacheman copied to clipboard

Key with no expiry

Open sachinsawant71 opened this issue 9 years ago • 3 comments

How do I set a key which will not expire from cache?

sachinsawant71 avatar May 31 '16 12:05 sachinsawant71

It's useful to control my cache lifecycle myself. I think it should default have no expire and pass a ttl if necessary.

miserylee avatar Aug 27 '16 08:08 miserylee

I set ttl: '100y' to achieve this

miserylee avatar Sep 18 '16 03:09 miserylee

@miserylee Did you try using 0 for the ttl? That was my initial approach but I quickly realized that does not result in storing things indefinitely. I will try 100y, I think that should about cover it. :)

niczak avatar Dec 28 '16 15:12 niczak