Class LRANGE
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.list.LRANGE
- All Implemented Interfaces:
Resp3Command
https://redis.io/commands/lrange/
Returns the specified elements of the list stored at key.
The offsets start and stop are zero-based indexes,
with 0 being the first element of the list (the head of the list),
1 being the next element and so on.
These offsets can also be negative numbers indicating offsets starting at the end of the list.
For example, -1 is the last element of the list, -2 the penultimate, and so on.
Out of range indexes will not produce an error.
If start is larger than the end of the list, an empty list is returned.
If stop is larger than the actual end of the list, will treat it like the
last element of the list.
- Since:
- 15.0
-
Field Summary
Fields inherited from class org.infinispan.server.resp.RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.server.resp.commands.Resp3Command
handleException
-
Constructor Details
-
LRANGE
public LRANGE()
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-