- 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
(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!