使用SCAN迭代器:https://pypi.python.org/pypi/redis for key in r.scan_iter("prefix:*"): r.delete(key). 答案1 :(得分:13).
確定! 回上一頁