UK [pri:'pend] US [pri:'pend]

vt. Consider in advance, plan in advance, plan in advance

memcached prepend command syntax

Function:Used to append data in front of the value (data value) of the existing key (key).

Syntax:prepend key flags exptime bytes [noreply]value

Parameters:

Parameters Description
key Key value The key in the key-value structure is used to find the cache value.
#flags Can include integer parameters of key-value pairs, which are used by the client to store additional information about the key-value pairs.
exptime The length of time (in seconds, 0 means forever) to keep key-value pairs in the cache.
bytes The number of bytes stored in the cache.
noreply Optional, this parameter tells the server that no data needs to be returned.
value The stored value (always located in the second line) (can be directly understood as the value in the key-value structure).

memcached prepend command example

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 redis memcached END