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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/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
Python 刷新数据库Deque_Python_Redis - Fatal编程技术网

Python 刷新数据库Deque

Python 刷新数据库Deque,python,redis,Python,Redis,我目前正在使用python中qr的Deque模块与Redis通信 myQue = Deque('TestDataset') myQue.push_front('Ringo Star') myQue.pop_back() 我现在只是在玩弄它,但我似乎找不到任何关于如何清除数据集和擦除数据集上所有数据的文档,有什么方法可以做到这一点吗 所有qr提供的数据结构的BaseQueue类基类都有一个明确的方法,该方法将删除/清空数据结构。请注意,删除队列或删除所有项目与Redis

我目前正在使用python中qr的Deque模块与Redis通信

    myQue = Deque('TestDataset')
    myQue.push_front('Ringo Star') 
    myQue.pop_back()

我现在只是在玩弄它,但我似乎找不到任何关于如何清除数据集和擦除数据集上所有数据的文档,有什么方法可以做到这一点吗

所有qr提供的数据结构的BaseQueue类基类都有一个明确的方法,该方法将删除/清空数据结构。请注意,删除队列或删除所有项目与Redis的操作相同

myQue.clear()