Closed natiki closed 4 years ago
The .Expire
method should have documentation which says exactly what it does.
If that's not clear enough let me know.
Could you also please use Stackoverflow for questions, Github issues are for bugs and issues and not for Q&A primarily ;) thanks
My apologies, the documentation is clear - not sure how I missed that because I must have read it a bunch of times. I will also move to SO for if it is clearly Q&A.
Hi,
So I have the following basic configuration with an in memory with 30 second expiry and Redis with 5 minute expiry.
So assuming I make a the following call:
Does that ultimately mean I have only "changed" the layer 1 (in memory cache) to a one hour absolute expiration and the layer 2 Redis gets the default of 5 minutes? In other words is the only way to explicitly change the Redis expiry for the same item by using CacheHandles https://github.com/MichaCo/CacheManager/issues/190#issuecomment-329587387.
So in my case that would be something like:
if I wanted the Redis key to stay there absolute for 10 hours (as opposed to the default 5m sliding)?