#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 match if_equal.

Methods

bool Matches(const StorageGenerationgeneration) const;

Returns true if generation matches the constraint.

bool MatchesNoValue() const;

Equivalent to Matches(StorageGeneration::NoValue()).