Skip to content

Commit 2340bbb

Browse files
authored
Merge pull request #41 from amirreza8002/v0.3.0
v0.3.0
2 parents 60a1fc3 + d8a8bba commit 2340bbb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ Version 0.3.0
22
-------------
33

44
### New
5+
- official support for cluster servers!!!
56
- now all operations support omitting exceptions
67
- `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)
78
- `django_valkey.get_valkey_connection` now works with shard client as well
9+
- replace django's `close_caches` receiver with `close_async_caches`
810

911
### bug fix
1012
- fixed bug of `omit_exception` not handling generator and async generators
1113
- fixed bug of async `get_valkey_connection` checking if the client is async.
1214

1315
### internal change
16+
- `make_key` and `make_pattern` return None if key/pattern is None
1417
- moved all operations from `django_valkey.cache` and `django_valkey.async_cache.cache` to `django_valkey.base`.
1518
- cluster client now uses the same methods as normal client, unless it has to have a specific method.
1619
- prefixing async methods with `a` is done dynamically now; (so no more `aset = set`), it's all handled in `__getattr__`.
@@ -20,6 +23,9 @@ Version 0.3.0
2023
- `AsyncHerdClient._pack` and `AsyncHerdClient._unpack` are now sync methods.
2124
- common parts of herd clients now live in `django_valkey.base_client`
2225
- shard client now has `get_client` instead of `get_server`
26+
- all tests now use pytest tools
27+
- use anyio for async tests instead of `pytest-asyncio`
28+
- add editorconfig file
2329

2430
Version 0.2.0
2531
-------------
@@ -115,4 +121,4 @@ Released 2024/09/07
115121

116122
- added some docstring to compressor classes
117123

118-
- fixed some messages generated by autocomplete
124+
- fixed some messages generated by autocomplete

django_valkey/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 2, 1)
1+
VERSION = (0, 3, 0)
22
__version__ = ".".join(map(str, VERSION))
33

44

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "django-valkey"
7-
version = "0.2.1"
7+
version = "0.3.0"
88
description = "a valkey backend for django"
99
readme = "README.rst"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)