-
Notifications
You must be signed in to change notification settings - Fork 4
612: Simple Redis Improvements #661
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
base: main
Are you sure you want to change the base?
Conversation
src/main/java/org/patinanetwork/codebloom/common/simpleredis/SimpleRedis.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/common/simpleredis/SimpleRedisProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/common/simpleredis/SimpleRedisProvider.java
Outdated
Show resolved
Hide resolved
|
|
/ai |
|
/review |
|
/describe |
|
/improve |
Title612: Simple Redis Improvements PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
Slots["SimpleRedisSlot<T> (typed slots)"]
Redis["SimpleRedis<T> (typed map)"]
Provider["SimpleRedisProvider (DB registry)"]
Controllers["Auth/Submission Controllers"]
Filter["RateLimitingFilter"]
Tests["SubmissionControllerTest"]
Slots -- "define indices + types" --> Provider
Provider -- "register/select" --> Redis
Controllers -- "use slots (Long)" --> Provider
Filter -- "use slot (Bucket)" --> Provider
Tests -- "mock provider + slots" --> Provider
|
| Relevant files | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 6 files
| ||||||||||||
| Tests | 1 files
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
src/main/java/org/patinanetwork/codebloom/common/simpleredis/SimpleRedis.java
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/utilities/RateLimitingFilter.java
Show resolved
Hide resolved
src/main/java/org/patinanetwork/codebloom/api/auth/AuthController.java
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
612
Description of changes
SimpleRedis,SimpleRedisSlot, andSimpleRedisProvider.SimpleRedisSlotis essentially our "enum" for the databases we support for in memory storage.SimpleRedisProvideris our class to handle methods pertaining to CRUD operations on the database and/or specified key value.SimpleRedisis an extension ofConcurrentHashMapthat may return a typed value ofClazzinstantiated fromSimpleRedisSlot.Checklist before review
Screenshots
Dev
Staging