valkey-py
valkey-py copied to clipboard
Valkey Python client based on a fork of redis-py
``` >>> help(valkey.Valkey.tfcall) Help on function tfcall in module valkey.commands.core: tfcall( self, lib_name: str, func_name: str, keys: Union[bytes, str, memoryview, Iterable[Union[bytes, str, memoryview]]] = None, *args: List ) -> Union[Awaitable[Any],...
This is a follow-up to #190, which was marked as fixed by #203. However, the [explanation in the docs](https://github.com/valkey-io/valkey-py/blob/c2910801fd9f5d081e7b4f632bd578132d5e2ad4/docs/opentelemetry.rst?plain=1#L30-L59) does not work and to the best of my understanding cannot...
Hi, I would like to propose that the `transaction()` helper gets an additional argument `max_tries` (perhaps even with a default value) to prevent infinite loops, as can happen fairly easily...
### Pull Request check-list - [Y] Do tests and lints pass with this change? _Ran linter and corrected changed lines_ - [Y ] Do the CI tests pass with this...
## Summary The `Result` class in `valkey/commands/search/result.py` inappropriately applies UTF-8 decoding to all field values, including binary vector data. This corrupts VECTOR field embeddings and makes valkey-py unsuitable for vector...
At this moment, `sismember` returns an integer representing whether a value is a member of the set: ```python >>> v.smembers(56) ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']...
refer: https://valkey.io/commands/client-capa/ > redirect - This indicates that the client is capable of handling redirect messages. When accessing a replica node in standalone mode, if a data operation is performed...
### Pull Request check-list - [x] Do tests and lints pass with this change? - [x] Do the CI tests pass with this change (enable it first in your forked...
hi one thing i'm noticing is that with the sync cluster client, after `close` is called, you can no longer operate on server, so `valkey.get("a")` raises an exception but with...
Random ConnectionError bursts after idle on AWS ElastiCache Valkey (serverless) with valkey-py 6.1
We’re running valkey-py against AWS ElastiCache Valkey (serverless, Valkey 8) and see a burst of ConnectionError exceptions when traffic resumes after a longer idle period. Connections appear to be dropped...