monai.deploy.core.datastores.Datastore#
- class monai.deploy.core.datastores.Datastore[source]#
Bases:
ABCBase class for data store.
Methods
__init__()delete(key)Delete value from the data store.
exists(key)Check if key exists in data store.
get(key[, def_val])Get value from the data store.
keys()Get keys from data store.
put(key, value)Put value into the data store.
size()Get size of data store.
- abstract delete(key)[source]#
Delete value from the data store.
- Parameters:
key (Hashable) – A key to delete.
- abstract exists(key)[source]#
Check if key exists in data store.
- Parameters:
key (Hashable) – A key to check.
- Returns:
True if key exists, False otherwise.
- Return type:
exists (bool)
- abstract get(key, def_val=None)[source]#
Get value from the data store.
- Parameters:
key (Hashable) – A key to get.
- Returns:
A value from the data store.
- Return type:
value (Any)
- abstract keys()[source]#
Get keys from data store.
- Returns:
A view of keys.
- Return type:
keys (KeysView)