#include "tensorstore/kvstore/operations.h"
struct tensorstore::kvstore::TransactionalReadGenerationConditions;

Conditions on the existing generation for transactional read operations.

Data members

StorageGeneration if_not_equal;

The read is aborted if the generation associated with the stored key matches if_not_equal. The special values of StorageGeneration::Unknown() (the default) or StorageGeneration::NoValue() disable this condition.

Methods

bool Matches(const StorageGenerationgeneration) const;

Returns true if generation satisfies the constraints.