fghjghf
V2EX  ›  问与答

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

  •  
  •   fghjghf · May 21, 2019 · 1875 views
  •   You need to sign in to view this topic
    This topic created in 2555 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   ·   5192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 09:02 · PVG 17:02 · LAX 02:02 · JFK 05:02
    ♥ Do have faith in what you're doing.