set method

Future<Set> set(
  1. Object key,
  2. Object value, {
  3. Duration? ex,
  4. DateTime? exat,
  5. Duration? px,
  6. DateTime? pxat,
  7. bool nx = false,
  8. bool xx = false,
  9. bool get = false,
})

set

Implementation

Future<Set> set(
  Object key,
  Object value, {
  Duration? ex,
  DateTime? exat,
  Duration? px,
  DateTime? pxat,
  bool nx = false,
  bool xx = false,
  bool get = false,
}) async {
  RespType<dynamic> result = await _runWithRetryNew(() async {
    return (await RespCommandsTier1(_client!).set(
      key,
      value,
      ex: ex,
      exat: exat,
      px: px,
      pxat: pxat,
      nx: nx,
      xx: xx,
      get: get,
    ));
  });

  return Set.fromResult(result);
}