代潇瑞博客

hExists 命令/方法/函数

Verify if the specified member exists in a key.

验证HASH表中是否存在指定的KEY-VALUE


Parameters

key

memberKey


Return value

BOOL: If the member exists in the hash table, return TRUE, otherwise return FALSE.


Examples

$redis->hSet('h', 'a', 'x');

$redis->hExists('h', 'a'); /*  TRUE */

$redis->hExists('h', 'NonExistingKey'); /* FALSE */

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1