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 Details

    • RedisSnapshotSpec

      public RedisSnapshotSpec(redis.clients.jedis.UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds)
      Creates a Redis snapshot spec.
      Parameters:
      jedis - initialized jedis client
      keyPrefix - redis key prefix (optional)
      ttlSeconds - optional TTL in seconds (null or negative means no TTL)