- tensorstore.KvStore.__getitem__(self, key: str) bytes
Synchronously reads the value of a single key.
Example
>>> store = ts.KvStore.open({'driver': 'memory'}).result() >>> store[b'a'] = b'value' >>> store[b'a'] b'value' >>> store[b'b'] Traceback (most recent call last): ... KeyError...
Note
The current thread is blocked until the read completes, but computations in other threads may continue.
See also