Skip to content

gets

Protocols: memcached text ยท meta mg c v

Like get, but each VALUE line includes the entry's CAS token. Use this with cas for lockless updates.

Synopsis

gets <key> [<key>...]\r\n

Response

VALUE <key> <flags> <bytes> <cas-token>\r\n
<data>\r\n
...
END\r\n

Example

> set k 0 0 1
> A
< STORED
> gets k
< VALUE k 0 1 1
< A
< END