lander
V2EX  ›  问与答

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

  •  
  •   lander · Jul 21, 2021 · 2179 views
    This topic created in 1941 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
    loux
    Jul 21, 2021❤️1
    1
    hget hardware memory?
    lander
    lander
    OP
    Jul 22, 2021
    3
    @loux 谢谢 大意了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   894 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:40 · PVG 04:40 · LAX 12:40 · JFK 15:40
    ♥ Do have faith in what you're doing.