• antirez's avatar
    Streams: fix XREAD ready-key signaling. · 6468cb2e
    antirez authored
    With lists we need to signal only on key creation, but streams can
    provide data to clients listening at every new item added.
    To make this slightly more efficient we now track different classes of
    blocked clients to avoid signaling keys when there is nobody listening.
    A typical case is when the stream is used as a time series DB and
    accessed only by range with XRANGE.
    6468cb2e
blocked.c 19.7 KB