Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Memcached prepend Command

Memcached prepend Command

The Memcached prepend command is used to prepend data before an already existing key 's value (data value) key .

Syntax:

The basic syntax format of the prepend command is as follows:



prepend key flags exptime bytes [noreply]

value

The parameters are described as follows:

Example

The example is as follows:



set runoob 0 900 9

memcached

STORED

get runoob

VALUE runoob 0 9

memcached

END

prepend runoob 0 900 5

redis

STORED

get runoob

VALUE runoob 0 14

redismemcached

END

Output

If the data is added successfully, it outputs:



STORED

Description of the output information: