-
#include "tensorstore/kvstore/operations.h"
- struct tensorstore::kvstore::WriteGenerationConditions;
Conditions on the existing generation for write operations.
Data members¶
- StorageGeneration if_equal;
The write is aborted if the existing generation associated with the stored
key
does not matchif_equal
.
Methods¶
- bool Matches(const StorageGeneration& generation) const;
Returns
true
ifgeneration
matches the constraint.
- bool MatchesNoValue() const;
Equivalent to
Matches(StorageGeneration::NoValue())
.