setNotExists method

Future<RedisReply> setNotExists(
  1. String key,
  2. dynamic value
)

SETNX - Set a key with a value only if the key does not exist

Implementation

Future<RedisReply> setNotExists(String key, value) async {
  return command('SETNX', [key, '$value']);
}