gpt4 book ai didi

Redis 限制 HKEYS

转载 作者:可可西里 更新时间:2023-11-01 11:20:40 25 4
gpt4 key购买 nike

我们可以限制 hkeys 结果吗??

HKEYS MyHash

结果:

1) "oliver peoples"
2) "variant_mobile_tablets_accessori204136"
3) "ume flip cover for asus zenfone 5 lite a502cg pink"
4) "cle00048700057449"
5) "nev00048700007683"
6) "01xfh04870003242302"
7) "nev00048700001579"

问题:我只想拿5排,怎么做?

我试过使用- SORT HKEYS MyHash LIMIT 0 10但仍然错误。

最佳答案

看看SCAN command with the option COUNT ,看起来这就是您要找的东西。

更新:

如以下评论中所述,您需要使用哈希变体 HSCAN .

关于Redis 限制 HKEYS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35169290/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com