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

Update module github.com/ReneKroon/ttlcache/v2 to v3 #37524

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dashpole
Copy link
Contributor

Description

Supersedes #36209

Most of the changes are obvious renames or refactors. The non-obvious changes are:

  • Start() must now be called on the cache to enable cleanup in the background.
  • Stop() can only be called once (or it will block indefinitely). I've added a sync.Once to ensure it is only ever called once.
  • Set() and Get() no longer return errors--even if Stop has already been called. This makes some of our tests obsolete, and I removed those tests.

Link to tracking issue

Fixes #36112

@dashpole dashpole added dependencies Pull requests that update a dependency file receiver/googlecloudspanner labels Jan 28, 2025
@dashpole dashpole marked this pull request as ready for review January 28, 2025 18:12
@dashpole dashpole requested a review from a team as a code owner January 28, 2025 18:12
@dashpole
Copy link
Contributor Author

cc @codeboten

@dashpole
Copy link
Contributor Author

cc @dsimil @KiranmayiB @harishbohara11

Would appreciate a review from one of you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file receiver/googlecloudspanner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

googlecloudspannerreceiver: Update dependencies
3 participants