# keyval/info
Snapshot of a keyval client's state.
## Syntax
[keyval/info $client]
## Parameters
- `$client` — client from `keyval/connect`
## Examples
[keyval/info $rds] # → %{:state :ready :pending 0 :port 6379 :tls false :resp3 true :host "localhost"}
## Returns
A map with:
- `:host`, `:port` — target address
- `:tls` — boolean, as configured
- `:resp3` — whether RESP3 is negotiated (defaults to `true` before dialing)
- `:state` — `:connecting`, `:tls-handshaking`, `:ready`, `:failed`, or
`:disconnected` (no connection object yet)
- `:pending` — queued/in-flight command count
`%Err{:message}` when the argument is not a keyval client.
## See Also
`keyval/connect`, `keyval/cmd`, `keyval/close`