-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Question on memory handling in shared_dict #2306
Comments
2 When memory is full, does the set method try to delete expired keys or can it delete keys that haven't expired yet? |
Thank you for the answer.
P.S. The “resty.concurrent.scheduler” module is a figment of ChatGPT's imagination. |
Nope.
If the shdict still overflows, then tweak the above steps. |
But if I set the test key to 3600 sec. Or did I misunderstand? |
Table entries in shared dict are passively eliminated and remain in memory as long as they are not overwritten. |
https://github.com/openresty/lua-nginx-module?tab=readme-ov-file#ngxshareddictset
Reading the documentation I didn't fully understand some points.
1 What happens when a key expires?
When and how and after how long is the memory replaced by this value freed and is it freed at all?
2 When memory is full, does the set method try to delete expired keys or can it delete keys that haven't expired yet?
The text was updated successfully, but these errors were encountered: