fghjghf
V2EX  ›  问与答

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

  •  
  •   fghjghf · May 21, 2019 · 2114 views
  •   You need to sign in to view this topic
    This topic created in 2685 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   ·   Privacy   ·   Solana   ·   2520 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:45 · PVG 12:45 · LAX 21:45 · JFK 00:45
    ♥ Do have faith in what you're doing.