Flask-Redis v0.4.0 Release Notes
Release Date: 2019-05-29 // almost 6 years ago-
- Reorganized the module and rewrote everything other than the library code, mainly packaging and CI. There are no user-facing changes in behavior.
Previous changes from v0.3.0
-
- Backwards incompatible: The
FlaskRedis.init_app
method no longer takes
astrict
parameter. Pass this flag when creating yourFlaskRedis
instance, instead. - Backwards incompatible: The extension will now be registered under the
0️⃣ (lowercased) config prefix of the instance. The default config prefix is
'REDIS'
, so unless you change that, you can still access the extension via
app.extensions['redis']
as before. - Backwards incompatible: The default class has been changed to
redis.StrictRedis
. You can switch back to the oldredis.Redis
class by
specifyingstrict=False
in theFlaskRedis
kwargs. - 👍 You can now pass all supported
Redis
keyword arguments (such as
decode_responses
) toFlaskRedis
and they will be correctly passed over
to theredis-py
instance. Thanks, @giyyapan! - Usage like
redis_store['key'] = value
,redis_store['key']
, and
👍del redis_store['key']
is now supported. Thanks, @ariscn!
- Backwards incompatible: The