Change Log
Version 0.4.1
deprecation
- deprecate old hash methods
bug fix
- fix bug regarding
get_or_set
Version 0.4.0
new
- added support for msgspec serialization (both json and msgpack)
- support django 6
- support python 3.14
Breaking changes
- dropped support for django 5.0 and 5.1
BackendCommandsandAsyncBackendCommandsare no longer decorated withomit_exception.- added
omit_exception_asyncto decorate async operations, instead of usingomit_exceptionfor both sync and async. omit_exceptionno longer supports async functions and generators.- added
DecoratedBackendCommandsandDecoratedAsyncBackendCommandsas commands decorated withomit_exceptionandomit_exception_async. AsyncValkeyCacheandValkeyCacheno longer inherit fromBackendCommandsandAsyncBackendCommands, they inherit fromDecoratedBackendCommandsandDecoratedAsyncBackendCommandsinstead.- stdlib
zstdis used instead ofpyzstd(zstdis the same aspyzstd, but since the package name are different this is counted is breaking change)
improvement
- removed the undecorator loop from cluster client
Version 0.3.2
- add
decr_versionmethod to be compatible with django'sBaseCache
Version 0.3.1
- allow access to
make_keyandmake_patternfrom backend - fix typos
- update pre-commit hooks
- add codespell
- attend a deprecated function in testcase
- add django 6 as supported version
Version 0.3.0
New
- official support for cluster servers!!!
- now all operations support omitting exceptions
make_key,make_pattern,encodeanddecodeare now functions, so they can be used outside the backend (e.g: when using the raw client)django_valkey.get_valkey_connectionnow works with shard client as well- replace django's
close_cachesreceiver withclose_async_caches
bug fix
- fixed bug of
omit_exceptionnot handling generator and async generators - fixed bug of async
get_valkey_connectionchecking if the client is async.
internal change
make_keyandmake_patternreturn None if key/pattern is None- moved all operations from
django_valkey.cacheanddjango_valkey.async_cache.cachetodjango_valkey.base. - cluster client now uses the same methods as normal client, unless it has to have a specific method.
- prefixing async methods with
ais done dynamically now; (so no moreaset = 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_resultare now all sync methods and moved todjango_valkey.base_client.BaseClient.AsyncHerdClient._packandAsyncHerdClient._unpackare now sync methods.- common parts of herd clients now live in
django_valkey.base_client - shard client now has
get_clientinstead ofget_server - all tests now use pytest tools
- use anyio for async tests instead of
pytest-asyncio - add editorconfig file
Version 0.2.0
-
drop support for EOL django versions
-
floats are no longer serialized this is to support atomic float operations
-
minor bug fix
Version 0.1.8
-
Added
AsyncSentinelClient -
internal bug fix
Version 0.1.7
- added
AsyncHerdClient
Version 0.1.6
- added
blockingandlock_classto get_lock parameters.
Version 0.1.5
-
Added mset and mget (atomic)
-
get_many() is now non-atomic
-
extended base.BaseValkeyCache to have more logic
Version 0.1.4
-
Added BaseClient class
-
BREAKING: changed BaseConnectionPool to BaeConnectionFactory
Version 0.1.3
-
Moved some method implementation out of BaseConnectionFactory class
-
added a guide to use the base classes
Version 0.1.2
-
Added an async backend
-
Added an async client
-
Added two async connection factories
-
Added documentation for async client
Version 0.0.17
-
Added migration guide to documents
-
changed documentation setup
-
added RESP3 documentation
-
changes in README.rst
-
cleaning up the codebase
-
fixed some test settings
-
major internal refactoring
-
renamed
lock()toget_lock(), but the old form is still available.
Version 0.0.15
Released 2024/09/07
-
Added this documentation!
-
changed
VALKEY_CLIENT_CLASStoBASE_CLIENT_CLASSfor clarity -
changed
CLIENT_KWARGStoBASE_CLIENT_KWARGSfor clarity -
added some docstring to compressor classes
-
fixed some messages generated by autocomplete