AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
## hKeys ##### *Description* Returns the keys in a hash, as an array of strings. 取得HASH表中的KEYS,以数组形式返回。 ##### *Parameters* *Key*: key ##### *Return value* An array of elements, the keys of the hash. This works like PHP's array\_keys(). ##### *Example* ``` <pre class="calibre16">$redis->delete('h'); $redis->hSet('h', 'a', 'x'); $redis->hSet('h', 'b', 'y'); $redis->hSet('h', 'c', 'z'); $redis->hSet('h', 'd', 't'); var_dump($redis->hKeys('h')); ``` Output: ``` <pre class="calibre16">array(4) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" } ``` The order is random and corresponds to redis' own internal representation of the set structure. ##