Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.4k views
in Technique[技术] by (71.8m points)

redis, hget是空的?

Yii::app()->redis->getClient()->hkeys($hkey);
这句代码有返回key.
Yii::app()->redis->getClient()->hget($hkey, $key);
此时hget返回结果是空的。。。

hset时几乎没可能set空值。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

建议你使用 hscan 命令,查看下这个 hash 结构下的所有信息.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...