Skip to content

Is "Expire" broken? #376

Answered by jodydonetti
andriibratanin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @andriibratanin

Hey, @jodydonetti. First of all, thank you for all the effort and care you give to the community!

Thanks, really appreciate it!

I am trying to fugure out how to use FusionCache with Redis as a L2 for "cold start". While experimenting with settings I've found that with FailSafe enabled calling Expire immediatelly removes the value from Redis, thus behaving just like Remove. And this is where I get confused...

Accorting to docs the Expire "method may be is useful in case we want to threat something as remove, but with the ability to say "better than nothing" in the future, in case of problems (thanks to fail-safe)", but at the same time heredocs in the code for Expire …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andriibratanin
Comment options

Answer selected by andriibratanin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants