Class RedisSnapshotSpec
java.lang.Object
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
io.agentscope.extensions.redis.snapshot.RedisSnapshotSpec
- All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec
public class RedisSnapshotSpec
extends io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
Convenience
SandboxSnapshotSpec for Redis-backed snapshot storage.-
Constructor Summary
ConstructorsConstructorDescriptionRedisSnapshotSpec(redis.clients.jedis.UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds) Creates a Redis snapshot spec. -
Method Summary
Methods inherited from class io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
build, getClient
-
Constructor Details
-
RedisSnapshotSpec
public RedisSnapshotSpec(redis.clients.jedis.UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds) Creates a Redis snapshot spec.- Parameters:
jedis- initialized jedis clientkeyPrefix- redis key prefix (optional)ttlSeconds- optional TTL in seconds (null or negative means no TTL)
-