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

Unified Jedis for Bucket4j #3102

Merged
merged 13 commits into from
Jan 23, 2024
Merged

Conversation

tgregory-block
Copy link
Collaborator

Description

Converts the misk bucket4j redis module to use UnifiedJedis, consistent with the main redis module

bucket4jMySQL = { module = "com.bucket4j:bucket4j-mysql", version = "8.5.0" }
bucket4jRedis = { module = "com.bucket4j:bucket4j-redis", version = "8.5.0" }
bucket4jCore = { module = "com.bucket4j:bucket4j-core", version = "8.7.0" }
bucket4jDynamoDbV1 = { module = "com.bucket4j:bucket4j-dynamodb-sdk-v1", version = "8.6.0" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are they not releasing an update for this library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, the author actually dropped it from bucket4j because he is based in Russia and the various geoip based blocklists make working with it difficult from that locality

@@ -2,10 +2,13 @@ package misk.redis

import com.google.common.base.Stopwatch
import com.google.common.base.Ticker
import jakarta.inject.Inject
Copy link
Collaborator

Choose a reason for hiding this comment

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

javax?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All the imports from the inject package seem to use jakarta, a search for import javax.inject returns nothing

@tgregory-block tgregory-block merged commit 91b43d8 into master Jan 23, 2024
12 checks passed
@tgregory-block tgregory-block deleted the tgregory/bucket4j-unified-jedis branch January 23, 2024 18:59
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.

None yet

4 participants