proxystore.connectors.redis¶
Redis connector implementation.
RedisKey ¶
Bases: NamedTuple
Key to objects store in a Redis server.
Attributes:
-
redis_key
(
str
) –Unique object ID.
RedisConnector ¶
Redis server connector.
Parameters:
Source code in proxystore/connectors/redis.py
close() ¶
config() ¶
Get the connector configuration.
The configuration contains all the information needed to reconstruct the connector object.
from_config()
classmethod
¶
Create a new connector instance from a configuration.
Parameters:
evict() ¶
Evict the object associated with the key.
Parameters:
-
key
(
RedisKey
) –Key associated with object to evict.
exists() ¶
get() ¶
get_batch() ¶
Get a batch of serialized objects associated with the keys.
Parameters:
Returns:
-
list[bytes | None]
–List with same order as
keys
with the serialized objects orNone
if the corresponding key does not have an associated object.
Source code in proxystore/connectors/redis.py
put() ¶
put_batch() ¶
Put a batch of serialized objects in the store.
Parameters:
Returns:
-
list[RedisKey]
–List of keys with the same order as
objs
which can be used to retrieve the objects.