It should be possible to force the removal of entries / overwriting Fail-Safe #364
Replies: 2 comments 3 replies
-
Hi @charlesvigneault , so if I got this right the issue is that you want fail-safe enabled for the entry for the soft timeout part, but not when doing a Something you can try is to disable fail-safe and use Eager Refresh instead of soft timeout: in this way before the entry expires a non-blocking background refresh will be done (you'll be still protected from cache stampede, of course) and in that case the Of course there's one thing to consider: if the data is not accessed after the eager refresh threshold is it and before the expiration, but only after the expiration, a slow api call would slow down the response. Is this something that may work for you? Meanwhile I'll think about other potential solutions. |
Beta Was this translation helpful? Give feedback.
-
Another option I thought about is to add the ability to specify the behaviour during the setup, so that it would be possible to define if RemoveByTag() would work as Remove or Expire. This would work for us. If a TAG is removed the entries matching the tag is no longer valid. This prevents us from using failsafe at the moment. |
Beta Was this translation helpful? Give feedback.
-
I would want to use Fail-Safe for my authorization but it's not possible without being able to force remove entries.
My case is:
This should be possible using Tags, Clear and Remove.
Beta Was this translation helpful? Give feedback.
All reactions