In the C API, in write parameters there is a property to ensure that a write will only succeed if the record did not exist before.
cl_write_parameters;
{
…
// write unique - will only succeed if record didn’t exist before
bool unique;
…
}
How do I do the same thing with the libevent API?