type method

Future<String> type(
  1. String key
)

type

Implementation

Future<String> type(String key) async {
  Object result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).type(key));
  });

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

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