fghjghf
V2EX  ›  问与答

Python IPC 能否像字典、列表一样根据 key 取止

  •  
  •   fghjghf · May 21, 2019 · 1853 views
    This topic created in 2548 days ago, the information mentioned may be changed or developed.

    一直在用消息队列。queue,然而并不能根据 key 取值,队列特性。put 一个,下次 get 只能是最上面的一个。 有别的 IPC 方法吗。

    3 replies    2019-05-22 16:28:55 +08:00
    BingoXuan
        1
    BingoXuan  
       May 21, 2019 via Android
    那就用 Redis
    samcode
        2
    samcode  
       May 21, 2019
    priorityqueue
    fghjghf
        3
    fghjghf  
    OP
       May 22, 2019
    @samcode 只是优先级,并没有键值对应的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1209 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:21 · PVG 07:21 · LAX 16:21 · JFK 19:21
    ♥ Do have faith in what you're doing.