企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## type ##### *Description* Returns the type of data pointed by a given key. 返回KEY所指向的VALUE的数据类型。 ##### *Parameters* *Key*: key ##### *Return value* Depending on the type of the data pointed by the key, this method will return the following value: string: Redis::REDIS\_STRING set: Redis::REDIS\_SET list: Redis::REDIS\_LIST zset: Redis::REDIS\_ZSET hash: Redis::REDIS\_HASH other: Redis::REDIS\_NOT\_FOUND ##### *Example* ``` <pre class="calibre16">$redis->type('key'); ``` ##