private async Task <long> HSetNXCoreAsync(byte[] key, byte[] field, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new HSetNX(connection.GetStream(), key, field, value); return(await command.ExecuteAsync()); }
private long HSetNXCore(byte[] key, byte[] field, byte[] value) { using var connection = new RedisConnection(_connectionSettings); var command = new HSetNX(connection.GetStream(), key, field, value); return(command.Execute()); }