getCommandToSetData method

List<String> getCommandToSetData(
  1. String key,
  2. String value, [
  3. String? option,
  4. dynamic optionValue,
])

get command to set data to redis

Implementation

List<String> getCommandToSetData(String key, String value,
    [String? option, dynamic optionValue]) {
  List<String> command = <String>[
    'SET',
    _setPrefixInKeys(<String>[key]).first,
    value.toString()
  ];
  if (option != null && optionValue != null) {
    command.addAll(<String>[option.toUpperCase(), optionValue.toString()]);
  }
  return command;
}