Memcached get
Command
Memcached get
Command to get the data stored in the key
In (key) value
(data value) if key
If it does not exist, empty is returned.
Syntax:
get
The basic syntax format of the command is as follows:
get key
Multiple key
Separated by spaces, as follows:
get key1 key2 key3
The parameters are described as follows:
key
Key valuekey-value
In the structurekey
Used to find cached values
Example
In the following example, we use the runoob
As key
The expiration time is set to 900 seconds
set runoob 0 900 9
memcached
STORED
get runoob
VALUE runoob 0 9
memcached
END