Class GETRANGE
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.string.GETRANGE
- All Implemented Interfaces:
Resp3Command
- Direct Known Subclasses:
SUBSTR
GETRANGE
Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Negative offsets can be used in order to provide an offset starting from the end of the string. So -1 means the last character, -2 the penultimate and so forth.
The function handles out of range requests by limiting the resulting range to the actual length of the string.
- Since:
- 15.0
- See Also:
-
Field Summary
Fields inherited from class org.infinispan.server.resp.RespCommand
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
aclMask()
perform
(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class org.infinispan.server.resp.RespCommand
extractKeys, fromByteBuf, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toString
-
Constructor Details
-
GETRANGE
public GETRANGE()
-
-
Method Details
-
aclMask
public long aclMask()- Specified by:
aclMask
in classRespCommand
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
perform
in interfaceResp3Command
-