Class RedisRemoteSnapshotClient
java.lang.Object
io.agentscope.extensions.redis.snapshot.RedisRemoteSnapshotClient
- All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
public class RedisRemoteSnapshotClient
extends Object
implements io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
RemoteSnapshotClient backed by Redis binary values.-
Constructor Summary
ConstructorsConstructorDescriptionRedisRemoteSnapshotClient(redis.clients.jedis.UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds) Creates a Redis-backed snapshot client. -
Method Summary
-
Constructor Details
-
RedisRemoteSnapshotClient
public RedisRemoteSnapshotClient(redis.clients.jedis.UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds) Creates a Redis-backed snapshot client.- Parameters:
jedis- initialized jedis clientkeyPrefix- redis key prefix (optional)ttlSeconds- optional TTL in seconds (null or negative means no TTL)
-
-
Method Details
-
upload
- Specified by:
uploadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
download
- Specified by:
downloadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
exists
- Specified by:
existsin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-