proxystore.store.local¶
LocalStore Implementation.
LocalStore ¶
LocalStore(
name: str,
store_dict: dict[LocalKey, bytes] | None = None,
*,
serializer: SerializerT | None = None,
deserializer: DeserializerT | None = None,
cache_size: int = 16,
metrics: bool = False
) -> None
Bases: Store[LocalConnector]
Store wrapper for local in-process storage.
Warning
This wrapper exists for backwards compatibility with ProxyStore <=0.4.* and will be deprecated in version 0.6.0.
Parameters:
-
name
(
str
) –Name of the store instance.
-
store_dict
(
dict[LocalKey, bytes] | None
) –Dictionary to store data in. If not specified, a new empty dict will be generated.
-
serializer
(
SerializerT | None
) –Optional callable which serializes the object. If
None
, the default serializer (serialize()
) will be used. -
deserializer
(
DeserializerT | None
) –Optional callable used by the factory to deserialize the byte string. If
None
, the default deserializer (deserialize()
) will be used. -
cache_size
(
int
) –Size of LRU cache (in # of objects). If 0, the cache is disabled. The cache is local to the Python process.
-
metrics
(
bool
) –Enable recording operation metrics.