lpushx method

Future<int> lpushx(
  1. String key,
  2. List<Object> values
)

Inserts value at the head of the list stored at key, only if key already exists and holds a list. In contrary to LPUSH, no operation will be performed when key does not yet exist.

Implementation

Future<int> lpushx(String key, List<Object> values) async {
  return _getInteger(await _execCmd(['LPUSHX', key, ...values]));
}