Commanded.Middleware.Uniqueness.claim
You're seeing just the function
claim
, go back to Commanded.Middleware.Uniqueness module for more information.
Link to this function
claim(key, value, owner, partition \\ Commanded.Middleware.Uniqueness)
View SourceSpecs
claim(key :: term(), value :: term(), owner :: term(), partition :: term()) :: :ok | {:error, :already_exists} | {:error, :unknown_error} | {:error, :no_adapter}
Claims a key
, value
, owner
, partition
set
or reports that this combination has already been claimed.
If a key
, value
, owner
, partition
set has to be claimed
and an old value for the given owner exists it releases first.
If partition
is ommited then default partition used.