redis and string | Mar 1, 2016
Returns the length of the string value stored at key
.
An error is returned when key
holds a non-string value.
redis and string | Mar 1, 2016
Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value. If the offset is larger than the current length of the string at key, the string is padded with zero-bytes to make offset fit. Non-existing keys are considered as empty strings, so this command will make sure it holds a string large enough to be able to set value at offset.
More »redis and string | Mar 1, 2016
Set key
to hold string value
if key
does not exist.
In that case, it is equal to SET
.
When key
already holds a value, no operation is performed.
SETNX
is short for “SET if Not eXists”.
redis and string | Mar 1, 2016
Set key
to hold the string value
and set key
to timeout after a given
number of seconds.
This command is equivalent to executing the following commands:
redis and string | Mar 1, 2016
Sets or clears the bit at offset in the string value stored at key.
More »redis and string | Mar 1, 2016
Set key
to hold the string value
.
If key
already holds a value, it is overwritten, regardless of its type.
Any previous time to live associated with the key is discarded on successful SET
operation.