Skip to content
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

fix(globalpatches): support exptime in SharedDict:set() api #12173

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

chobits
Copy link
Contributor

@chobits chobits commented Dec 7, 2023

This commit introduces support for the exptime parameter in SharedDict:set() to align its functionality with that of the original ngx.shared.DICT.set(). And it refines the logic of SharedDict:add() by using SharedDict:set().

Summary

Checklist

  • The Pull Request has tests -- reuse the original test cases in kong
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

fix KAG-3303

@chobits
Copy link
Contributor Author

chobits commented Dec 7, 2023

This pr will fix the test case failure of #12100. And it is benefial for other potential test cases / cli tool which will use exptime of shdict:set() api.

@chobits chobits requested a review from ADD-SP December 7, 2023 10:39
This commit introduces support for the exptime parameter in SharedDict:set() to
align its functionality with that of the original ngx.shared.DICT.set(). And it
refines the logic of SharedDict:add() by using SharedDict:set().

Fix KAG-3303
@chobits chobits force-pushed the fix_cli_shdict_set branch from 180c761 to 612f7fe Compare December 8, 2023 02:23
@fffonion fffonion merged commit 81ad18d into master Dec 8, 2023
23 checks passed
@fffonion fffonion deleted the fix_cli_shdict_set branch December 8, 2023 05:39
@chobits chobits added the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Dec 8, 2023
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee size/S skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants