Home  >  Q&A  >  body text

redis的list有没有判断某值是否存在于某list的方法?

找了几天,就找到一个删除指定值的,但是我不想删除

ringa_leeringa_lee2751 days ago1251

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-28 09:06:30

    No, if you have this need, you can use ZSet.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-04-28 09:06:30

    SISMEMBER in the set and ZRANK, ZREVRANK, and ZSCORE in the ordered set can all determine whether a member is in the set. Thanks for the answer upstairs

    reply
    0
  • Cancelreply