Closed fairyqb closed 3 months ago
@fairyqb
If this line in the code is commented out, stale data cannot be retrieved from the shared dictionary.
This is because the expired entry was reclaimed. You add init_dict with 0 expired time which means it will not expire. This entry at the LRU end prevents reclaiming expired entries.
@fairyqb
This is because the expired entry was reclaimed. You add init_dict with 0 expired time which means it will not expire. This entry at the LRU end prevents reclaiming expired entries.
This is a different key.
@fairyqb why did you reopen this issue?
You should move this issue to lua-nginx-module repository.
Please see the following file example: shm_stale_resty_test.lua.txt
If this line in the code is commented out, stale data cannot be retrieved from the shared dictionary.
line 12: dict:set("init_dict", "init", 0)