Skip to content

Instantly share code, notes, and snippets.

@mp911de
Created March 28, 2016 14:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mp911de/9ab07bbff4ae79c5ca33 to your computer and use it in GitHub Desktop.
Save mp911de/9ab07bbff4ae79c5ca33 to your computer and use it in GitHub Desktop.
Redis RESP summary

All elements are CRLF terminated. CRLF in the examples mean additional CRLFs.

Syntax Type null? empty? data/value
+ Simple string no + ASCII string, non-binary safe
- Simple error string no - ASCII string, non-binary safe
: Integer no no ASCII-represented 64bit integer
$(integer)CRLF(data) Bulk $0CRLF $-1 Binary safe chunk of bytes
*(integer) Array *0 *-1 Array header holding a length/null indicator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment