V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lander
V2EX  ›  问与答

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

  •  
  •   lander · Jul 21, 2021 · 1712 views
    This topic created in 1754 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   ·   864 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:43 · PVG 04:43 · LAX 13:43 · JFK 16:43
    ♥ Do have faith in what you're doing.