💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 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'); ``` ##