Tuesday, 23 August 2016

Memcached: get command

get command is used to get the value associated with a key.

Syntax
get key

You can also retrieve the values associated with multiple keys at a time.

Syntax
get key1 key2 …. keyN
$ telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set harikrishna 0 900 11
memcached

STORED
set sudhir 0 900 13
memcached


STORED
get harikrishna
VALUE harikrishna 0 11
memcached

END
get sudhir
VALUE sudhir 0 13
memcached


END
get harikrishna sudhir
VALUE harikrishna 0 11
memcached

VALUE sudhir 0 13
memcached


END


Previous                                                 Next                                                 Home

No comments:

Post a Comment