lset method

Future<bool> lset(
  1. String key,
  2. int index,
  3. Object value
)

Sets the list element at index to value. For more information on the index argument, see LINDEX.

False is returned for out of range indexes.

Implementation

Future<bool> lset(String key, int index, Object value) async {
  return _getBool(await _execCmd(['LSET', key, index, value]));
}