Skip to content

Releases: django-commons/django-valkey

0.4.0

12 Dec 16:45
fe73a70

Choose a tag to compare

What's Changed

  • decorator cleanup by @amirreza8002 in #66
  • use stdlib zstd library instead of pyzstd by @amirreza8002 in #72
  • add support for msgspec serialization by @amirreza8002 in #73
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #59
  • Add Django 6.0 to test matrix by @ulgens in #77
  • Improve Django 4.2 support by @ulgens in #80
  • Drop support for Django 5.0 & 5.1 (EOL) by @ulgens in #81
  • update installation guides by @amirreza8002 in #82
  • 0.4.0 by @amirreza8002 in #83

New Contributors

Full Changelog: 0.3.2...0.4.0

0.3.2

31 Oct 17:05
aaf4767

Choose a tag to compare

0.3.2

patch: `make_key` and `make_pattern` avilable as backend methods

25 Sep 11:45
c4a2135

Choose a tag to compare

What's Changed

  • Add make_key and make_pattern to BaseValkeyCache by @q0w in #43
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #35
  • from inspect import iscoroutinefunction not asyncio by @cclauss in #51
  • Fix typos discovered by codespell by @cclauss in #52
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #47
  • 0.3.1 by @amirreza8002 in #53

New Contributors

Full Changelog: 0.3.0...0.3.1

v0.3.0: cluster!, better async and more

03 Aug 02:55
2340bbb

Choose a tag to compare

New

  • official support for cluster servers!!!
  • now all operations support omitting exceptions
  • make_key, make_pattern, encode and decode are now functions, so they can be used outside the backend (e.g: when using the raw client)
  • django_valkey.get_valkey_connection now works with shard client as well
  • replace django's close_caches receiver with close_async_caches

bug fix

  • fixed bug of omit_exception not handling generator and async generators
  • fixed bug of async get_valkey_connection checking if the client is async.

internal change

  • make_key and make_pattern return None if key/pattern is None
  • moved all operations from django_valkey.cache and django_valkey.async_cache.cache to django_valkey.base.
  • cluster client now uses the same methods as normal client, unless it has to have a specific method.
  • prefixing async methods with a is done dynamically now; (so no more aset = set), it's all handled in __getattr__.
  • moved async client methods to django_valkey.base_client.AsyncClientCommands.
  • moved sync client methods to django_valkey.base_client.ClientCommands.
  • make_key, make_pattern, encode, decode, _decode_iterable_result are now all sync methods and moved to django_valkey.base_client.BaseClient.
  • AsyncHerdClient._pack and AsyncHerdClient._unpack are now sync methods.
  • common parts of herd clients now live in django_valkey.base_client
  • shard client now has get_client instead of get_server
  • all tests now use pytest tools
  • use anyio for async tests instead of pytest-asyncio
  • add editorconfig file

0.2.1

18 Mar 02:37

Choose a tag to compare

  • drop support for EOL django versions

  • floats are no longer serialized
    this is to support atomic float operations

  • minor bug fix

0.1.8: added async sentinel client

10 Oct 15:06

Choose a tag to compare

  • Added AsyncSentinelClient

  • internal bug fix

0.1.7: added an async herd client

09 Oct 19:55

Choose a tag to compare

  • added AsyncHerdClient

added missing parameters to get_lock()

07 Oct 13:13
c902fec

Choose a tag to compare

  • added blocking and lock_class to get_lock parameters.

Added new methods, changed an old method

30 Sep 16:15

Choose a tag to compare

  1. Added mset and mget (atomic)
  2. get_many() is now non-atomic (to match set_many)
  3. added more logic to base.BaseValkeyCache

Added new base class, renamed an old base class

25 Sep 15:57

Choose a tag to compare

  1. BaseClient class is not available

  2. BaseConnectionPool is renamed to BaseConnectionFactory for accuracy