-
Notifications
You must be signed in to change notification settings - Fork 558
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
Allow Setting Redis Key Experation #1666
Comments
Note: OpenDAL already supports setting a TTL, so we only need to add the configuration value on the sccache side. |
Is there an option for turning off key expiration completely in the meantime? With LRU unused keys will naturally be evicted over time. The Redis doc would probably be a good place for this too. |
Yes, I think we can skip the TTL setting if it's |
Yes please! How do I do that? |
By the way, we are not setting any TTL on redis now. |
Hmm. Brief search suggests that Redis doesn't have a default TTL either. So who is setting it? A different default in OpenDAL? |
No, opendal doesn't set TTL by default. |
Would setting TTL accomplish anything with a default Redis instance then? I'm trying to understand if that would be solving the right problem. Where does the current value come from? Do we know? |
Discussed in #1665
Originally posted by jretterer-prol March 18, 2023
In using sccache with redis along with the allkeys-lru eviction policy I was seeing keys being removed from redis even thought the allocated memory space was not fully utilized. That led me to check the TTL on the redis keys and found one is set for sccache keys.
After finding that I tried to find a way to adjust this but I can't seam to find it. So, is there a way to adjust this expiry time for redis keys or even better, set it so the time is refreshed when keys are read?
The text was updated successfully, but these errors were encountered: