Releases: django-commons/django-valkey
Releases · django-commons/django-valkey
patch: `make_key` and `make_pattern` avilable as backend methods
What's Changed
- Add
make_keyandmake_patterntoBaseValkeyCacheby @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
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
0.2.1
-
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
-
Added
AsyncSentinelClient -
internal bug fix
0.1.7: added an async herd client
- added AsyncHerdClient
added missing parameters to get_lock()
- added
blockingandlock_classto get_lock parameters.
Added new methods, changed an old method
- Added mset and mget (atomic)
- get_many() is now non-atomic (to match set_many)
- added more logic to base.BaseValkeyCache
Added new base class, renamed an old base class
-
BaseClient class is not available
-
BaseConnectionPool is renamed to BaseConnectionFactory for accuracy
0.1.3
- Moved some method implementation out of BaseConnectionFactory class
- added a guide to use the base classes
Full Changelog: https://github.com/amirreza8002/django-valkey/commits/0.1.3