search

Home  >  Q&A  >  body text

Redis命令exists和hexists有什么区别吗?

hexists判断hash类型的key是否存在,但是我在本地测试,用exists判断也可以啊,这两个除了hexists不能判断非hash类型key是否存在,还有别的区别吗?

高洛峰高洛峰2875 days ago912

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-04-24 09:14:04

    "Hexists determine whether the hash type key exists" - - No

    hexists is 'Determine if a hash field exists'

    The calling parameters are all different. . .

    reply
    0
  • Cancelreply