rpush method

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

rpush

Implementation

Future<int> rpush(String key, List<Object> values) async {
  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).rpush(key, values));
  });

  if (result is RespType2<dynamic>) {
    return result.toInteger().payload;
  }

  return (result as RespType3<dynamic>).toInteger().payload;
}