Skip to content

refactor: simplify redis example adapter#25

Merged
nootr merged 1 commit intomainfrom
refactor/simplify-redis-example
Mar 5, 2026
Merged

refactor: simplify redis example adapter#25
nootr merged 1 commit intomainfrom
refactor/simplify-redis-example

Conversation

@nootr
Copy link
Owner

@nootr nootr commented Mar 5, 2026

Simplify the Redis store adapter in examples/redis/:

  • Extract resp_to_string helper to replace 4-way pattern match on resp types
  • Flatten nested get handler using result.try and bucket.from_pairs
  • Inline on_limit_exceeded and handler into main()
  • Remove intermediate lock_key variables

- Extract resp_to_string helper to replace 4-way pattern match
- Flatten nested get handler using result.try and from_pairs
- Inline on_limit_exceeded and handler into main
- Remove intermediate lock_key variables
@nootr nootr merged commit 40c3024 into main Mar 5, 2026
5 checks passed
@nootr nootr deleted the refactor/simplify-redis-example branch March 5, 2026 06:04
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.

1 participant