Memcached get Command
The Memcached get command retrieves the storedkey'svalue (data value), if the key does not exist, it returns empty.
Syntax:
The basic syntax of the get command is as follows:
get key
Multiple keys are separated by spaces, as follows:
get key1 key2 key3
The parameter descriptions are as follows:
- key:The key in the key-value structure is used to find the cached value.
Example
In the following example, we use example as the key and set the expiration time to 900 seconds.
set example 0 900 9 memcached STORED get example VALUE example 0 9 memcached ENDOther extensions