Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
keys()redis python模块中使用NULL&;时出现意外行为;ETX序列_Redis_Redis Py - Fatal编程技术网

keys()redis python模块中使用NULL&;时出现意外行为;ETX序列

keys()redis python模块中使用NULL&;时出现意外行为;ETX序列,redis,redis-py,Redis,Redis Py,我正在使用redis和python模块来保存字节序列(作为键) 当我试图获取包含“\x00???\x03”(?=任何ASCII字符)的密钥时 例如: str=“\x00\x01\x00\x03”(作为字节序列) 数据库键(模式=“”+str+“”) 给我所有的钥匙 这是正常的行为吗

我正在使用redis和python模块来保存字节序列(作为键) 当我试图获取包含“\x00???\x03”(?=任何ASCII字符)的密钥时

例如:

str=“\x00\x01\x00\x03”(作为字节序列)

数据库键(模式=“”+str+“”)

给我所有的钥匙

这是正常的行为吗