PING
Returns the server’s liveliness response.
Browse all commands · Upstream source documentation
| Reference field | Value |
|---|---|
| Canonical name | PING |
| Catalog group | Connection commands |
| Upstream since | 1.0.0 — upstream Redis/module version, not an ffkv release |
| Pinned catalog | Redis 8.10.0 |
Syntax
Section titled “Syntax”PING [message]ffkv behavior and limits
Section titled “ffkv behavior and limits”Connection state, selected database, authentication and protocol negotiation belong to the same persistent connection. RESP2 is the default; HELLO 3 selects RESP3. Streamed/unknown-length RESP3 frames are not supported.
Source: README.md:96–120, 391–395; tests/bdd/features/connections.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.
Upstream metadata
Section titled “Upstream metadata”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)
Upstream arity: -1 (includes the command name; a negative number is a minimum).
Command flags: FAST, SENTINEL.
ACL categories: CONNECTION.
Command tips: REQUEST_POLICY:ALL_SHARDS, RESPONSE_POLICY:ALL_SUCCEEDED.
Argument structure
Section titled “Argument structure”| Argument | Type | Constraints / metadata |
|---|---|---|
message | string | optional |
Additional pinned upstream metadata
{ "group": "connection", "since": "1.0.0"}Metadata source · Local snapshot: src/command_metadata.json, key ping.
BDD coverage and source examples
Section titled “BDD coverage and source examples”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.
- Lua preserves arbitrary decimal replies and sparse cardinality beyond signed integers (Scenario Outline) —
tests/bdd/features/arrays.feature:434; invocation observed. - Replication WAIT is unblocked by exact client identity (Scenario Outline) —
tests/bdd/features/client_control_repair.feature:5; invocation observed. - Durable replication waits expose current counts or explicit cancellation (Scenario Outline) —
tests/bdd/features/client_control_repair.feature:60; invocation observed. - Killing a selected client closes its actual socket without killing another connection —
tests/bdd/features/connections.feature:266; invocation observed. - Binary echo and ping preserve payloads and QUIT closes the persistent socket —
tests/bdd/features/connections.feature:751; command tag and invocation observed. - Error unblocking removes the actual waiter and exposes the UNBLOCKED error —
tests/bdd/features/connections.feature:780; invocation observed. - A regular subscription delivers payloads and unsubscribe removes the recipient —
tests/bdd/features/pubsub.feature:4; invocation observed. - Off blocks new authentication without revoking existing sessions —
tests/bdd/features/server.feature:1036; invocation observed.
Extracted command vectors
Section titled “Extracted command vectors”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.
Lua preserves arbitrary decimal replies and sparse cardinality beyond signed integers — tests/bdd/features/arrays.feature:466 (client “big” executes:)
Expanded from an actual Examples row: version=2, cardinality="18446744073709551615", signed="-340282366920938463463374607431768211456".
[ "PING"]Next source assertion: the reply equals:
"PONG"Binary echo and ping preserve payloads and QUIT closes the persistent socket — tests/bdd/features/connections.feature:761 (client “closing” executes:)
[ "PING", "alive"]Next source assertion: the reply equals:
"alive"