rpushx method

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

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

Returns the length of the list after the push operation.

Implementation

Future<int> rpushx(String key, List<Object> values) async {
  return (await tier1.rpushx(key, values)).toInteger().payload;
}