February 2018
Intermediate to advanced
382 pages
11h 33m
English
SET and GET may be the most frequently used commands in Redis. The format of SET is very simple:
SET <key> <value>.
Redis returns OK if the SET command was executed successfully. The APPEND command appends a string to the end of the existing string and returns the length of the new string. If the key does not exist, Redis will create an empty string for the key at first, then execute APPEND. The SETRANGE command overwrites part of the string, starting at the specified offset, and to the end of the entire string. String offset in Redis starts with 0. SETRANGE returns the length of the new string after the replacement.
Read now
Unlock full access