Skip to content

Update django-redis to 6.0.0#2591

Open
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-django-redis-4.8.0-to-6.0.0
Open

Update django-redis to 6.0.0#2591
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-django-redis-4.8.0-to-6.0.0

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates django-redis from 4.8.0 to 6.0.0.

Changelog

6.0.0

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

Features
--------

- Support HashMaps (`598 <https://github.com/jazzband/django-redis/issues/598>`_)
- Support gzip compression (`688 <https://github.com/jazzband/django-redis/issues/688>`_)
- Support for sets and support basic operations, sadd, scard, sdiff, sdiffstore, sinter, sinterstore, smismember, sismember, smembers, smove, spop, srandmember, srem, sscan, sscan_iter, sunion, sunionstore (`730 <https://github.com/jazzband/django-redis/issues/730>`_)


Bug Fixes
---------

- Hotfix for timeout=DEFAULT_TIMEOUT in expire and pexpire (`724 <https://github.com/jazzband/django-redis/issues/724>`_)
- Fix is_master parsing error for write separation in sentinel mode (`749 <https://github.com/jazzband/django-redis/issues/749>`_)
- Added blocking parameter for `cache.lock` (`752 <https://github.com/jazzband/django-redis/issues/752>`_)


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

- Added support for Python 3.12 (`689 <https://github.com/jazzband/django-redis/issues/689>`_)
- Pin pytest to <7.0 until compatibility issues are resolved (`690 <https://github.com/jazzband/django-redis/issues/690>`_)
- Replace isort and flake8 with ruff (`692 <https://github.com/jazzband/django-redis/issues/692>`_)
- Drop django 4.0 (`693 <https://github.com/jazzband/django-redis/issues/693>`_)
- Upgrade black to 23.10.1 (`695 <https://github.com/jazzband/django-redis/issues/695>`_)
- Typed DefaultClient (`696 <https://github.com/jazzband/django-redis/issues/696>`_)
- Support pytest>=7 (`697 <https://github.com/jazzband/django-redis/issues/697>`_)
- Drop support for django 3.2, python 3.6 and python 3.7 (`699 <https://github.com/jazzband/django-redis/issues/699>`_)
- Support tox 4 (`701 <https://github.com/jazzband/django-redis/issues/701>`_)
- Configured dependabot for github actions (`702 <https://github.com/jazzband/django-redis/issues/702>`_)
- Use ubuntu-latest for CI (`703 <https://github.com/jazzband/django-redis/issues/703>`_)
- Dropped support for django 4.1 and added support for django 5.0 (`729 <https://github.com/jazzband/django-redis/issues/729>`_)
- Added support for django 5.1 (`754 <https://github.com/jazzband/django-redis/issues/754>`_)
- Update minimum supported versions in README.md: Python to 3.8, Django to 4.2, redis-py to 4.0.2 (`755 <https://github.com/jazzband/django-redis/issues/755>`_)
- Added support for Python 3.13 (`756 <https://github.com/jazzband/django-redis/issues/756>`_)
- Speed up tests by using `pytest-xdist` and separating settings on different redis databases.
Dropped `pytest-django`
Using `docker-compose` for setting up redis containers for testing
Use `tox-uv` (`757 <https://github.com/jazzband/django-redis/issues/757>`_)
- Confirm support for Django 5.2.
Fix shadowing builtin Python exceptions. (`824 <https://github.com/jazzband/django-redis/issues/824>`_)


Deprecations and Removals
-------------------------

- Drop support for Python 3.8 (`852 <https://github.com/jazzband/django-redis/issues/852>`_)

5.4.0

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

Features
--------

- Connection factory goes to cache options (`680 <https://github.com/jazzband/django-redis/issues/680>`_)


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

- Added note in docs for correctly configuring hiredis parser when using redis-py version 5. (`677 <https://github.com/jazzband/django-redis/issues/677>`_)

5.3.0

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

Features
--------

- Add support for django 4 (`627 <https://github.com/jazzband/django-redis/issues/627>`_)


Bug Fixes
---------

- Access `django_redis.cache.DJANGO_REDIS_SCAN_ITERSIZE` and `django_redis.client.herd.CACHE_HERD_TIMEOUT` in runtime to not read Django settings in import time. (`638 <https://github.com/jazzband/django-redis/issues/638>`_)
- Skipping pickle serializer test for django >= 4.2 (`646 <https://github.com/jazzband/django-redis/issues/646>`_)


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

- Speed up deleting multiple keys by a pattern with pipelines and larger itersize (`609 <https://github.com/jazzband/django-redis/issues/609>`_)
- Print full exception traceback when logging ignored exceptions (`611 <https://github.com/jazzband/django-redis/issues/611>`_)
- Fix mypy linting (`626 <https://github.com/jazzband/django-redis/issues/626>`_)
- Added support for python 3.11 (`633 <https://github.com/jazzband/django-redis/issues/633>`_)
- Fix CI, running tox<4 to still support Python 3.6. (`645 <https://github.com/jazzband/django-redis/issues/645>`_)
- Dropped support for django 2.2 and 3.1 (`649 <https://github.com/jazzband/django-redis/issues/649>`_)
- Run actions & tox against Django 4..2 (`668 <https://github.com/jazzband/django-redis/issues/668>`_)

5.2.0

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

Bug Fixes
---------

- Block use with broken redis-py 4.0.0 and 4.0.1 (`542 <https://github.com/jazzband/django-redis/issues/542>`_)


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

- Unblock redis-py >=4.0.2 (`576 <https://github.com/jazzband/django-redis/issues/576>`_)
- Add support for django 4 (`579 <https://github.com/jazzband/django-redis/issues/579>`_)

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.

4.11.0

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

- Removed support for Python 2.7 and 3.4.
- Removed support for Django 2.0 and 2.1.
- Added support for Python 3.8.
- Added support for Django 2.2 and 3.0.
- Changed msgpack-python soft dependency to msgpack.
- Fixed ``.touch()`` method for sharded client.
- Fixed prefix escaping for the sharded client.
- Fixed ``.add()`` method to return a bool.

4.10.0

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

- Add support and testing for Django 2.1 and Python 3.7. No actual code changes
were required.
- Add support for redis-py 3.0.
- Add touch command.

4.9.1

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

- Pin redis version to 2.10.6

4.9.0

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

- Add testing and support for Django 2.0. No actual code changes were required.
- Escape ``KEY_PREFIX`` and ``VERSION`` when used in glob expressions.
- Improve handling timeouts less than 1ms.
- Remove fakeredis support.
- Add datetime, date, time, and timedelta serialization support to the JSON
serializer.
- The deprecated feature of passing ``True`` as a timeout value is no longer
supported.
- Fix ``add()`` with a negative timeout to not store key (it is immediately
invalid).
- Remove support for Django < 1.11.
- Add support for atomic incr if key is not set.
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant