Skip to content
Search ffkv docs

Search the complete handbook, locally.

    RPUSH

    Appends one or more elements to a list. Creates the key if it doesn’t exist.

    Browse all commands · Upstream source documentation

    Reference fieldValue
    Canonical nameRPUSH
    Catalog groupList commands
    Upstream since1.0.0 — upstream Redis/module version, not an ffkv release
    Pinned catalogRedis 8.10.0
    RPUSH key element [element ...]

    A successful pop removes the item immediately: Redis list queues have no acknowledgement or automatic redelivery. Blocking calls do not wait in EXEC or Lua. Only large list/native-job bodies are SSD-offloaded in hybrid mode.

    Source: README.md:155–174, 810–825; tests/bdd/features/lists.feature.

    All requests share the 8 MiB framing/1,024-argument ingress limit; normal RESP replies have 64 MiB wire/logical budgets with bounded nesting/value counts. Management and Lua origins impose smaller budgets. These are not a process RSS cap. Catalog inclusion is not exhaustive option or wire-format parity. See limits and compatibility.

    The following fields come from the pinned Redis metadata, not measured ffkv performance or an assertion that ffkv enforces every upstream flag. Running COMMAND INFO/COMMAND DOCS describe the current engine.

    Upstream Redis complexity: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.

    Upstream arity: -3 (includes the command name; a negative number is a minimum).

    Command flags: WRITE, DENYOOM, FAST.

    ACL categories: LIST.

    ArgumentTypeConstraints / metadata
    keykeykey_spec_index: 0
    elementstringmultiple

    Upstream key discovery descriptors (indexes are relative to the full command vector):

    [
    {
    "flags": [
    "RW",
    "INSERT"
    ],
    "begin_search": {
    "index": {
    "pos": 1
    }
    },
    "find_keys": {
    "range": {
    "lastkey": 0,
    "step": 1,
    "limit": 0
    }
    }
    }
    ]
    Additional pinned upstream metadata
    {
    "group": "list",
    "since": "1.0.0",
    "history": [
    [
    "2.4.0",
    "Accepts multiple `element` arguments."
    ]
    ]
    }

    Metadata source · Local snapshot: src/command_metadata.json, key rpush.

    These are source observations, not a test run performed by this documentation build. A tag identifies scenario intent; an extracted vector identifies a command invocation, which may intentionally produce an error. Scenarios may require setup, multiple connections, persistence, cluster nodes or native-module fixtures.

    • Database-local flush never removes another database — tests/bdd/features/catalog.feature:92; invocation observed.
    • Swapping logical databases preserves values TTLs and recovery — tests/bdd/features/catalog.feature:170; invocation observed.
    • SORT_RO tracks real scalar and hash lookups rather than wildcard patterns — tests/bdd/features/client_control_repair.feature:571; invocation observed.
    • A denied actual SORT lookup logs the resource and leaves STORE unchanged — tests/bdd/features/client_control_repair.feature:621; invocation observed.
    • Atomic import transfers real typed data and survives destination restart — tests/bdd/features/cluster.feature:498; invocation observed.
    • Live resolved mutations replay list changes deletion and absolute expiry exactly once — tests/bdd/features/cluster.feature:1109; invocation observed.
    • Unblock completes a real list waiter with timeout semantics and does not consume later data — tests/bdd/features/connections.feature:353; invocation observed.
    • Existence counts repeated arguments but deletion counts each removed key once — tests/bdd/features/generic.feature:129; invocation observed.
    • Rename overwrites the destination and preserves the source collection and expiration — tests/bdd/features/generic.feature:1042; invocation observed.
    • A complete singleton scan supports MATCH COUNT TYPE and a terminal empty result — tests/bdd/features/generic.feature:1159; invocation observed.
    • Sort resolves external hash weights and multiple GET patterns before limiting and storing — tests/bdd/features/generic.feature:1203; invocation observed.
    • A failed numeric sort cannot alter its store destination or the original collection — tests/bdd/features/generic.feature:1267; invocation observed.
    • Type distinguishes built in values and missing keys without inspecting their contents — tests/bdd/features/generic.feature:1352; invocation observed.
    • Multi-element pushes have different argument ordering at each end — tests/bdd/features/lists.feature:9; command tag and invocation observed.
    • Conditional pushes never create missing lists and retain argument order — tests/bdd/features/lists.feature:45; invocation observed.
    • Counted pops return traversal order and delete emptied keys — tests/bdd/features/lists.feature:93; invocation observed.
    • Zero counts do not consume and negative counts fail atomically (Scenario Outline) — tests/bdd/features/lists.feature:130; invocation observed.
    • Negative indexes and inclusive trim endpoints preserve list order — tests/bdd/features/lists.feature:163; invocation observed.
    • Removal counts select from the requested end without disturbing survivors — tests/bdd/features/lists.feature:225; invocation observed.
    • Insertion resolves the first pivot and reports missing pivots without mutation — tests/bdd/features/lists.feature:273; invocation observed.
    • Positions combine negative rank, count, maxlen, and stable forward indexes — tests/bdd/features/lists.feature:326; invocation observed.
    • Multi-pop honors key order, duplicates, direction, and the chosen key only — tests/bdd/features/lists.feature:373; invocation observed.
    • Single moves implement all endpoint combinations (Scenario Outline) — tests/bdd/features/lists.feature:420; invocation observed.
    • Legacy right-to-left move rotates a same-key list and preserves its expiry — tests/bdd/features/lists.feature:450; invocation observed.
    • Destination type errors cannot consume the source (Scenario Outline) — tests/bdd/features/lists.feature:494; invocation observed.
    • Batch movement returns destination order for all endpoints and modes (Scenario Outline) — tests/bdd/features/lists.feature:520; invocation observed.
    • Same-key batch selection happens before any push back (Scenario Outline) — tests/bdd/features/lists.feature:554; invocation observed.
    • Exactly is all-or-nothing and count bounds the available source — tests/bdd/features/lists.feature:586; invocation observed.
    • Blocking single pops choose the first available key and traverse its selected end (Scenario Outline) — tests/bdd/features/lists.feature:644; invocation observed.
    • Blocking moves wake on source availability and insert at the destination end (Scenario Outline) — tests/bdd/features/lists.feature:664; invocation observed.
    • A blocked multi-pop consumes a batch from the first newly available list — tests/bdd/features/lists.feature:697; invocation observed.
    • Exactly blocking movement waits for the entire batch and preserves binary payloads — tests/bdd/features/lists.feature:726; invocation observed.
    • Count blocking movement wakes with fewer than the requested count — tests/bdd/features/lists.feature:767; invocation observed.
    • Blocked consumers have FIFO priority and cancellation removes a waiter — tests/bdd/features/lists.feature:784; invocation observed.
    • Blocking operations inside EXEC return immediately and later writes are not consumed — tests/bdd/features/lists.feature:858; invocation observed.
    • Resolved insertion and batch movement recover with ordering and binary values intact — tests/bdd/features/lists.feature:882; invocation observed.
    • Blocked requests do not survive a server lifecycle but completed effects do — tests/bdd/features/lists.feature:907; invocation observed.
    • An insertion wakes an exact batch after an earlier insufficient push — tests/bdd/features/lists.feature:938; invocation observed.
    • An exact batch timeout leaves a short source untouched — tests/bdd/features/lists.feature:980; invocation observed.
    • RESP3 keeps nested pop arrays, destination-order move arrays, and missing positions distinct — tests/bdd/features/lists.feature:1009; invocation observed.
    • List commands reject incompatible source values without replacing them (Scenario Outline) — tests/bdd/features/lists.feature:1047; command tag and invocation observed.
    • AOF configuration inside EXEC preserves the saved committed prefix exactly once — tests/bdd/features/transactions_runtime.feature:66; invocation observed.
    • Graceful shutdown drains a save and its scheduled successor from EXEC — tests/bdd/features/transactions_runtime.feature:185; invocation observed.
    • Memory statistics distinguish allocated bytes from actual live keys across databases — tests/bdd/features/transactions_runtime.feature:211; invocation observed.

    The following JSON arrays are the test harness’s argument vectors, not shell commands. Numeric arguments are converted by the harness; objects of the form {"base64":"…"} represent decoded binary bytes, not a literal JSON command argument. Preserve scenario setup and connection ordering. See the CLI guide for shell quoting and binary stdin. No reply is invented or inferred.

    Multi-element pushes have different argument ordering at each end — tests/bdd/features/lists.feature:19 (I execute:)

    [
    "RPUSH",
    "q",
    "d",
    "e"
    ]

    Next source assertion: the reply equals:

    5

    Exactly blocking movement waits for the entire batch and preserves binary payloads — tests/bdd/features/lists.feature:745 (I execute:)

    [
    "RPUSH",
    "source",
    "last"
    ]

    Next source assertion: the reply equals:

    2

    Blocking moves wake on source availability and insert at the destination end — tests/bdd/features/lists.feature:671 (I execute:)

    Expanded from an actual Examples row: command=["BLMOVE","source","destination","RIGHT","LEFT","0"].

    [
    "RPUSH",
    "source",
    "a",
    "b"
    ]

    Next source assertion: the reply equals:

    2