If we have a key that holds a string value, we can use the GETRANGE command to get a substring from that value.
Redis also has a SUBSTR command that does the same thing, but that was deprecated in Redis 2.0.0, in favour of the GETRANGE command.