-
#include "tensorstore/kvstore/operations.h"
-
Future<TimestampedStorageGeneration>
tensorstore::kvstore::Delete(const KvStore& store,
std::string_view key,
WriteOptions options = {}); -
Future<TimestampedStorageGeneration>
tensorstore::kvstore::DeleteCommitted(const KvStore& store,
std::string_view key,
WriteOptions options = {}); Performs an optionally-conditional delete.
Equivalent to
Write(store, key, std::nullopt, options)
orWriteCommitted(store, key, std::nullopt, options)
.- Parameters:¶
- const KvStore &store¶
KvStore
from which to delete the key.- std::string_view key¶
Key to delete, interpreted as a suffix to be appended to
store.path
.- WriteOptions options = {}¶
Specifies options for deleting.