V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lander
V2EX  ›  问与答

redis 怎么精确或者模糊查询?

  •  
  •   lander · 2021-07-21 17:39:49 +08:00 · 1051 次点击
    这是一个创建于 981 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如有个名叫“hardware”类型为 hash 的 key 。
    hardware 里有 memory 、disk 、cpu 和 clock_time 等信息,如果想查 hardware 这个 key 里的 memory 的值,咋用类似 findstr 或者 grep 之类的查询过滤一下而不是直接 hgetall hardware 直接查出来所有结果?
    看了 redis 官方的文档感觉命令介绍写的好简单。。

    提前谢过
    3 条回复    2021-07-22 10:02:15 +08:00
    loux
        1
    loux  
       2021-07-21 17:47:53 +08:00   ❤️ 1
    hget hardware memory?
    Dreax
        2
    Dreax  
       2021-07-21 18:39:48 +08:00
    lander
        3
    lander  
    OP
       2021-07-22 10:02:15 +08:00
    @loux 谢谢 大意了。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5400 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 06:58 · PVG 14:58 · LAX 23:58 · JFK 02:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.