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

Combiner mem cache for DEK #10534

Conversation

gastonponti
Copy link
Contributor

Description

Depends on PR #10533

LRU cache for the DEK of an account

@gastonponti gastonponti requested a review from a team August 31, 2023 14:32
@gastonponti gastonponti force-pushed the gastonponti/combiner-mem-cache branch from 9dab542 to b4c575e Compare August 31, 2023 18:44
@@ -41,6 +41,8 @@ export const pnpFullNodeRetryCount = defineInt('PNP_FULL_NODE_RETRY_COUNT', {
export const pnpFullNodeDelaysMs = defineInt('PNP_FULL_NODE_DELAY_MS', {
default: RETRY_DELAY_IN_MS,
})
export const pnpShouldMockAccountService = defineBoolean('PNP_SHOULD_MOCK_ACCOUNT_SERVICE')
export const pnpMockDek = defineString('PNP_MOCK_DECK')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could set a default DEK based on this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I didn't know that. Adding it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, I'll leave it like this. If I include that function I'll need to add a file in a test folder, which could be a problem for productive builds, or move that to some sort of utils, but just for testing.
If we use it as e2e we can set this variable and that's it

Copy link
Contributor

@alecps alecps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Left some comments

@gastonponti gastonponti force-pushed the gastonponti/combiner-mem-cache branch from b4c575e to d7c3686 Compare September 1, 2023 19:07
@gastonponti gastonponti merged commit cfc446c into soloseng/odis-cloud-function-gen2 Sep 1, 2023
@gastonponti gastonponti deleted the gastonponti/combiner-mem-cache branch September 1, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants