memcached prepend command


  Translation results:

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

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

memcached prepend commandsyntax

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:

ParametersDescription
keyKey value The key in the key-value structure is used to find the cache value.
#flagsCan include integer parameters of key-value pairs, which are used by the client to store additional information about the key-value pairs.
exptimeThe length of time (in seconds, 0 means forever) to keep key-value pairs in the cache.
bytesThe number of bytes stored in the cache.
noreplyOptional, this parameter tells the server that no data needs to be returned.
valueThe stored value (always located in the second line) (can be directly understood as the value in the key-value structure).

memcached prepend commandexample

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

Home

Videos

Q&A