Python上的Redis操作求助

43次阅读

PythonShell上:

In [1]: db.lpush("hello","test")
Out[1]: 1L

In [2]: db.lrem("hello",0,"test")
Out[2]: 0L

redis-cli上:

redis 127.0.0.1:6379> lrem hello 0 test
(integer) 1

谢谢

酿泉

你用反了

db.lrem("hello", "test", 0);

joyqi

http://redis.readthedocs.org/en/lates…

yanyaoer

删除不成熟的答案 lrem hello -1 test

chenge

正文完