Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key with no expiry #31

Open
sachinsawant71 opened this issue May 31, 2016 · 3 comments
Open

Key with no expiry #31

sachinsawant71 opened this issue May 31, 2016 · 3 comments

Comments

@sachinsawant71
Copy link

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

@miserylee
Copy link

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

@miserylee
Copy link

I set ttl: '100y' to achieve this

@niczak
Copy link

niczak commented Dec 28, 2016

@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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants