Memcached get command
Memcached get command gets the value(data value) stored in key(key). If key does not exist, it returns empty.
Syntax:
The basic syntax format of the get command is as follows:
get key
Multiple keys are separated by spaces, as follows:
get key1 key2 key3
The parameter description is as follows:
key: The key in the key-value structure is used to find cached values.
Example
In the following example, we use php as the key and the expiration time is set to 900 seconds.
set php 0 900 9 memcached STORED get php VALUE php 0 9 memcached END