In Redis, the GETRANGE
command allows us to get part of a string at a given key, starting and ending at the specified offsets.
The GETRANGE
command replaced the SUBSTR
command, which basically does the same thing. The SUBSTR
command is now considered deprecated (as of Redis 2.0.0).