-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace use of r2d2 with redis-rs ConnectionManager
Using r2d2 with redis isn't really necessary, as the redis crate can multiplex a connection, and in fact its the recommended approach for most use cases: redis-rs/redis-rs#388 (comment) Therefore this changes things to use redis-rs internally, with the intent of adding an async API to this crate in the future. Additionally this enables TLS for Redis connections, to support Redis servers that require TLS. This change is mostly API-compatible, but does change the underlying RedisPool type (its still called "pool", but its actually a ConnectionManager), and drops the exported type RedisPooledConnection.
- Loading branch information
Showing
3 changed files
with
50 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters