lander
V2EX  ›  问与答

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

  •  
  •   lander · Jul 21, 2021 · 1731 views
    This topic created in 1758 days ago, the information mentioned may be changed or developed.
    比如有个名叫“hardware”类型为 hash 的 key 。
    hardware 里有 memory 、disk 、cpu 和 clock_time 等信息,如果想查 hardware 这个 key 里的 memory 的值,咋用类似 findstr 或者 grep 之类的查询过滤一下而不是直接 hgetall hardware 直接查出来所有结果?
    看了 redis 官方的文档感觉命令介绍写的好简单。。

    提前谢过
    3 replies    2021-07-22 10:02:15 +08:00
    loux
        1
    loux  
       Jul 21, 2021   ❤️ 1
    hget hardware memory?
    Dreax
        2
    Dreax  
       Jul 21, 2021
    lander
        3
    lander  
    OP
       Jul 22, 2021
    @loux 谢谢 大意了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5531 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 605ms · UTC 07:18 · PVG 15:18 · LAX 00:18 · JFK 03:18
    ♥ Do have faith in what you're doing.