Skip to content

Conversation

@teogeb
Copy link
Contributor

@teogeb teogeb commented Nov 18, 2024

Refactor StreamRegistry caching:

  • added private populateMetadataCache() method to populate the cache
  • added invalidateCache() helper function to simplify cache invalidation
  • renamed cache fields to be nouns instead of method verbs

Small functionality changes

  • The metadata is in cache after setStreamMetadata() and createStream() calls (we can easily populate the cache as the metadata is a method parameter)

@github-actions github-actions bot added the sdk label Nov 18, 2024
@teogeb teogeb changed the title refactor(sdk): StreamRegistry#populateMetadataCache() refactor(sdk): StreamRegistry cache invalidation Nov 18, 2024
@teogeb teogeb requested review from harbu and juslesan November 18, 2024 10:54
@teogeb teogeb requested a review from harbu November 18, 2024 15:55
Copy link
Contributor

@harbu harbu left a comment

Choose a reason for hiding this comment

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

LGTM

@harbu harbu self-requested a review November 20, 2024 08:55
@teogeb teogeb merged commit f593f7c into main Nov 20, 2024
23 checks passed
@teogeb teogeb deleted the refactor-StreamRegistry-populateMetadataCache branch November 20, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants