- tensorstore.KvStore.__contains__(self, key: str) bool
Synchronously checks if the given key is present.
Example
>>> store = ts.KvStore.open({'driver': 'memory'}).result() >>> store[b'a'] = b'value' >>> b'a' in store True >>> b'b' in store False
Note
The current thread is blocked until the read completes, but computations in other threads may continue.
See also