Messaging protocols
Memcached set command builder
Build a text-protocol set request with the correct UTF-8 payload length.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Write set key flags expiration bytes, CRLF, payload and final CRLF. Count encoded bytes rather than characters.
Payload é occupies two bytes. The default request uses 21 wire bytes including the header and CRLF framing.
Limits
Text payloads encoded as UTF-8. Keys are limited to 250 printable ASCII bytes without spaces. Expiration above 30 days is an absolute Unix time. No server request is made.