proxystore.store
Module containing all Store
implementations.
Type | Use Case |
---|---|
LocalStore |
In-memory object store local to the process. Useful for development. |
RedisStore |
Store objects in a preconfigured Redis server. |
FileStore |
Use a globally accessible file system for string objects. |
GlobusStore |
Transfer objects between two Globus endpoints. |
EndpointStore |
Experimental: P2P object stores for multi-site applications. |
MargoStore |
Experimental: Distributed in-memory storage across nodes with Margo communication. |
UCXStore |
Experimental: Distributed in-memory storage across nodes with UCX communication. |
WebsocketStore |
Experimental: Distributed in-memory storage across nodes with Websocket communication. |
get_store ¶
Get the backend store with name.
Parameters:
Returns:
-
Store[Any] | None
–Store
if a store matching the name or belonging to the proxy exists. If the store does not exist, returnsNone
.
Raises:
-
ProxyStoreFactoryError
–If the value is a proxy but does not contain a factory of type
StoreFactory
.
Source code in proxystore/store/__init__.py
register_store ¶
Register the store instance to the global registry.
Note
Global means globally accessible within the Python process.
Parameters:
-
store
(
Store[Any]
) –Store instance to register.
-
exist_ok
(
bool
) –If a store with the same name exists, overwrite it.
Raises:
-
StoreExistsError
–If a store with the same name is already registered and
exist_ok
is false.
Source code in proxystore/store/__init__.py
unregister_store ¶
Unregisters the store instance from the global registry.
Note
This function is a no-op if no store matching the name exists (i.e., no exception will be raised).
Parameters:
-
name
(
str
) –Name of the store to unregister.