diff options
author | Cody-G <codyjgreer@gmail.com> | 2020-02-08 13:19:17 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2020-02-24 15:38:05 -0800 |
commit | 3310fe415a4c3a6ec9a9fcaf9a9fa24808219429 (patch) | |
tree | 9f02ba16ce16ed29a86a0482a6b237c38ed6752d /CHANGES | |
parent | 03260002ded57223c5d05b2c99a0a710ee5d34f3 (diff) | |
download | redis-py-3310fe415a4c3a6ec9a9fcaf9a9fa24808219429.tar.gz |
Support memoryview encoding/decoding as a no-op
This allows memoryview instances to be passed to Redis command args that
expect strings or bytes. The memoryview instance is sent directly to
the socket such that there are zero copies made of the underlying data
during command packing.
Fixes #1265
Fixes #1285
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -10,7 +10,10 @@ * Optimized Lock's blocking_timeout and sleep. If the lock cannot be acquired and the sleep value would cause the loop to sleep beyond blocking_timeout, fail immediately. Thanks @clslgrnc. #1263 - + * Added support for passing Python memoryviews to Redis command args that + expect strings or bytes. The memoryview instance is sent directly to + the socket such that there are zero copies made of the underlying data + during command packing. Thanks @Cody-G. #1265, #1285 * 3.4.1 * Move the username argument in the Redis and Connection classes to the end of the argument list. This helps those poor souls that specify all |