Client API References
Refer to the following links for managing compare-exchange items via the Client API:
-
Overview examples:
Example I - Email address reservation
Example II - Reserve a shared resource
Example III - Ensuring unique values without using compare exchange -
Create compare-exchange items:
Create item using a cluster-wide session
Create item using a store operation -
Get compare-exchange item:
Get item using a cluster-wide session
Get item using a store operation -
Get compare-exchange items:
Get compare-exchange items by list of keys
Get compare-exchange items by prefix
Get compare-exchange items count -
Delete compare-exchange items:
Delete compare-exchange item using a cluster-wide session
Delete compare-exchange item using a store operation -
Update compare-exchange item:
Update compare-exchange item using a cluster-wide session
Update compare-exchange item using a store operation -
Include compare-exchange items:
Include compare-exchange items when loading
Include compare-exchange items when querying -
Indexing compare-exchange values:
Index compare-exchange values
Query the index
Query the index and project compare-exchange values -
Compare-exchange in dynamic queries:
Projecting compare-exchange values in query results
Filtering by compare-exchange value -
Compare-exchange expiration:
Add expiration date using the Client API -
Atomic guards:
Atomic guard usage example
Best practice when storing a document in a cluster-wide transaction