X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efc3408748061a08ec5ff18e392c30f31f5094a2..06e09c9b586d0e2c5d91dc596f871be56c6e0971:/doc/SetrangeCommand.html diff --git a/doc/SetrangeCommand.html b/doc/SetrangeCommand.html deleted file mode 100644 index 1bd70b4e..00000000 --- a/doc/SetrangeCommand.html +++ /dev/null @@ -1,58 +0,0 @@ - - - -
- - - -Overwrites part of a string at key starting at the specified offset,for all the length of value.If the offset is over the old length of the string, the string is paddedwith zero bytes until needed. Non existing keys are considered likealready containing an empty string.-
-redis> set foo "Hello World" -OK -redis> setrange foo 6 "Redis" -(integer) 11 -redis> get foo -"Hello Redis" -Example of the zero padding behavior.
-redis> del foo -(integer) 1 -redis> setrange foo 10 bar -(integer) 13 -redis> get foo -"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00bar" -Note that the maximum offset that you can set is 536870911 as Redis Strings are limited to 512 megabytes. You can still create longer arrays of values using multiple keys.