LInsertCommand class final
Represents the 'LINSERT key BEFORE|AFTER pivot value' command. Inserts an element before or after another element in a list.
Redis Command:
LINSERT mylist BEFORE item2 newitem
Redis Reply (Example):
:3
Dart Result (from parse method):
int resolving to 3 (new length of the list)
Parameters:
- Inheritance
-
- Object
- Command<
int> - ValkeyCommand<
int> - LInsertCommand
- Mixed-in types
Constructors
- LInsertCommand(String key, String pivot, String value, {required bool before})
Properties
- before → bool
-
final
-
commandParts
→ List<
String> -
The command and its arguments, to be implemented by each subclass.
no setteroverride
-
encoded
→ List<
int> -
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
- pivot → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
final
Methods
-
applyPrefix(
String prefix) → ValkeyCommand< int> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
dynamic data) → int -
The parser for the response, to be implemented by each subclass.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited