Reputation: 1582
When I query a key in memcached using telnet, I see something like this:
> get mykeyname
VALUE mykeyname 3 240396
{the key value}
END
What is the first line? I can see the keyword VALUE and the name of the key but don't understand what the integers mean, and I can't find this documented anywhere. My guess is that the second integer is the length of the data in bytes, but what is the first one?
Upvotes: 0
Views: 863
Reputation: 297
As specified in the Memcached protocol, the first integer are the flags and the second integer is the size of the value in bytes.
Upvotes: 1