Memcached Get Check and Set Operation
Get CAS is used to track key-values in Memcached. Get CAS provides the value with a token. This token is used to Set CAS operation. Syntax is similar to get.
- gets verb
- key the key we want its value
We can get an existing value with gets. First we will add some data nırmmaly.
add counter 3
Now we want to get the data with token by using gets.
VALUE counter 3 21
- gets is the operation
- counter is the key
- VALUE gives detailed information
- 0 is the flag
- 3 is the
- 21 is the token
- 123 is the value