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

Use Caffeine's Expiry.creating for StorageCredentialCache #1142

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

Conversation

smaheshwar-pltr
Copy link
Contributor

@smaheshwar-pltr smaheshwar-pltr commented Mar 10, 2025

The StorageCredentialCache currently uses a custom Expiry. I think that this works correctly.

IMHO using a built-in one that Caffeine provides, like Expiry.writing reads better - this is what this PR proposes.

@smaheshwar-pltr smaheshwar-pltr changed the title Update storage credential cache expiration on value replacement Use Caffeine's Expiry.writing for StorageCredentialCache Mar 10, 2025
@smaheshwar-pltr smaheshwar-pltr changed the title Use Caffeine's Expiry.writing for StorageCredentialCache Use Caffeine's Expiry.writing for StorageCredentialCache Mar 10, 2025
@smaheshwar-pltr smaheshwar-pltr changed the title Use Caffeine's Expiry.writing for StorageCredentialCache Use Caffeine's Expiry.creating for StorageCredentialCache Mar 12, 2025
Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @smaheshwar-pltr !

This is a nice code clarification 👍

@dimas-b
Copy link
Contributor

dimas-b commented Mar 12, 2025

@collado-mike @eric-maynard WDYT?

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.

2 participants