Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Update django-redis to 5.1.0 #663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Contributor

This PR updates django-redis from 4.11.0 to 5.1.0.

Changelog

5.1.0

===============================

Features
--------

- Add Python 3.10 to CI (`536 <https://github.com/jazzband/django-redis/issues/536>`_)
- Configured ``towncrier`` to generate the changelog. (`548 <https://github.com/jazzband/django-redis/issues/548>`_)
- Added ``django_redis.compressors.zstd.ZStdCompressor`` to provide ``pyzstd`` cache value compression. (`551 <https://github.com/jazzband/django-redis/issues/551>`_)
- Change pickle default version to Python default instead of highest version. (`555 <https://github.com/jazzband/django-redis/issues/555>`_)
- Add ``hiredis`` extra dependency to request ``redis[hiredis]``. (`556 <https://github.com/jazzband/django-redis/issues/556>`_)
- Add pexpireat to allow setting 'expire at' with millisecond precision. (`564 <https://github.com/jazzband/django-redis/issues/564>`_)


Bug Fixes
---------

- Make expire, pexpire, expireat and persist return the redis client value (`564 <https://github.com/jazzband/django-redis/issues/564>`_)


Miscellaneous
-------------

- Convert most unittest class tests to pytest tests. (`553 <https://github.com/jazzband/django-redis/issues/553>`_)
- Update type comments to type annotations. (`568 <https://github.com/jazzband/django-redis/issues/568>`_)
- Pin redis-py to 3.x until 4.x breaking changes can be addressed. (`570 <https://github.com/jazzband/django-redis/issues/570>`_)


Documentation
-------------

- Clarify redis primary name in sentinel documentation. (`529 <https://github.com/jazzband/django-redis/issues/529>`_)
- Add documentation on configuring self signed SSL certificates. (`559 <https://github.com/jazzband/django-redis/issues/559>`_)

5.0.0

===============================

- supporting django 3.1 and django 3.2
- dropped support for python 3.5
- added support for python 3.9
- started type hinting the codebase
- ensure connections are closed
- fixed ``ShardClient`` ``.clear()`` method
- ``.delete()`` now returns boolean from django 3.1 onwards
- disconnect connection pools on ``.close()``
- added support for redis sentinel
- added ``.expire_at()`` method
- fixed ``.incr()`` when ttl is ``None`` or when the number is larger than 64 bit
- fixed ``.incr_version()`` when ttl is ``None``
- added ``.pttl()`` method to the clients to support milli-second precision for
ttl of a key
- added ``.pexpire()`` method to the clients to support milli-second precision
for setting expiry of a key

4.12.1

================================

- No code changes.
- Fixed a typo in setup.cfg metadata preventing a successful release.

4.12.0

================================

- The project has moved to `Jazzband <https://jazzband.co/>`_. This is the
first release under the new organization. The new repository URL is
`<https://github.com/jazzband/django-redis>`_.
- Removed support for end-of-life Django < 2.2.
- Removed support for unmaintained redis-py 2.X.
- Changed uses of deprecated ``smart_text()`` to ``smart_str()``.
- Fixed deprecation warning with the msgpack serializer.
- The ``.touch()`` method now uses the default timeout, to cache forever pass
``None``.
- Subclasses of ``JSONSerializer`` can now override the ``encoder_class``
attribute to change the JSON encoder. It defaults to ``DjangoJSONEncoder``.
- Fixed ``DefaultClient.set()`` to work with empty ``Pipeline``.
- The ``thread_local`` parameter is now forwarded to the Redis client.
Links

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant