Skip to content

Allow constructing a RedisStore from a RedisPool#122

Merged
maxcountryman merged 1 commit into
maxcountryman:mainfrom
thallada:main
Dec 22, 2023
Merged

Allow constructing a RedisStore from a RedisPool#122
maxcountryman merged 1 commit into
maxcountryman:mainfrom
thallada:main

Conversation

@thallada

Copy link
Copy Markdown
Contributor

Makes RedisStore generic over any type that implements fred's KeysInterface so either a RedisClient or RedisPool can be used.

Since RedisPool is generally preferred for most applications, I switched all examples and documentation to use RedisPool. But, existing code that used RedisClient will not fail to compile.

I also modified the integration test that tests RedisStore to use a RedisPool.

Fixes issue #92

Makes `RedisStore` generic over any type that implements fred's `KeysInterface` so either a `RedisClient` or `RedisPool` can be used.

Since `RedisPool` is generally preferred for most applications, I switched all examples and documentation to use `RedisPool`. But, existing code that used `RedisClient` will not fail to compile.

I also modified the integration test that tests `RedisStore` to use a `RedisPool`.

Fixes issue #92
@codecov

codecov Bot commented Dec 22, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c147da2) 76.35% compared to head (d163b8d) 75.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
- Coverage   76.35%   75.89%   -0.46%     
==========================================
  Files          12       12              
  Lines         499      502       +3     
==========================================
  Hits          381      381              
- Misses        118      121       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maxcountryman

Copy link
Copy Markdown
Owner

Lovely! Thank you for this.

@maxcountryman maxcountryman merged commit b20cbe6 into maxcountryman:main Dec 22, 2023
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