• guybe7's avatar
    Add XAUTOCLAIM (#7973) · 714e103a
    guybe7 authored
    
    
    New command: XAUTOCLAIM <key> <group> <consumer> <min-idle-time> <start> [COUNT <count>] [JUSTID]
    
    The purpose is to claim entries from a stale consumer without the usual
    XPENDING+XCLAIM combo which takes two round trips.
    
    The syntax for XAUTOCLAIM is similar to scan: A cursor is returned (streamID)
    by each call and should be used as start for the next call. 0-0 means the scan is complete.
    
    This PR extends the deferred reply mechanism for any bulk string (not just counts)
    
    This PR carries some unrelated test code changes:
    - Renames the term "client" into "consumer" in the stream-cgroups test
    - And also changes DEBUG SLEEP into "after"
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    714e103a
server.h 122 KB