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

浏览:22日期:2022-08-28

问题描述

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

问题解答

回答1:

「hexists判断hash类型的key是否存在」 - - 不是

hexists 是 ’Determine if a hash field exists’

调用参数都不一样。。。

相关文章: