Redis-py
Pre-release
Pre-release
·
11 commits
to main
since this release
This release switches from aioredis v2 to redis-py. If you've made the migration to the first release candidate, there shouldn't be much that needs changing. The required changes are listed below. Since aioredis is mostly a subset of redis-py in version 2, you can start using more features after this release.
Added
RedisSession.connectcan take an optionalpingflag which specifies if the services should be validated with a PINGRedisSession.connectreturns it's self so it can be better chained when creating the clientRedisSession.poolwas added back after being removed in the previous release candidate
Changed
- Switch aioredis for
redis ~= 4.2.0 RedisSessionno longer takes a URL, but accepts all parameters which can be passed toredis.asyncio.RedisRedisSessionNotConnectedis more explicit about the issue being a lack of calling theconnectmethod, as opposed to actually being connected.RedisSession.connectedhas been renamed toRedisSession.validRedisCache.deletereturns the number of deleted entries
Deprecated
RedisSession.poolhas been deprecated due to being an unnecessary wrapper aroundRedisSession.client.connection_pool. For most cases, you should perform the operations directly from the client, and it'll manage all the pooling overhead. If you truly need to access the pool directly, you can do so through the client.
Full Changelog: v1.0.0-rc1...v1.0.0-rc2