#include "tensorstore/kvstore/operations.h"
Future<ReadResult>
tensorstore::kvstore::Read(const KvStorestore,
                           
std::string_view key,
                           
ReadOptions options = {});

Attempts to read the value for the key store.path + key.

Note

A missing value is not considered an error.

Parameters:
const KvStore &store

KvStore from which to read.

std::string_view key

The key to read, interpreted as a suffix to be appended to store.path.

ReadOptions options = {}

Specifies options for reading.

Returns:

A Future that resolves when the read completes successfully or with an error.

struct tensorstore::kvstore::ReadGenerationConditions;

Specifies constraints on the generation for read operations.

struct tensorstore::kvstore::ReadOptions;

Read options for non-transactional reads.

struct tensorstore::kvstore::TransactionalReadGenerationConditions;

Conditions on the existing generation for transactional read operations.