AS AgentScopeAPI 手册 / API Reference

RedisSnapshotSpec

public class RedisSnapshotSpec extends RemoteSnapshotSpec
源码Source io/agentscope/extensions/redis/snapshot/RedisSnapshotSpec.java:25–37

Redis 快照规格,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.extensions.redis.snapshot 包,继承自 RemoteSnapshotSpec。核心成员包括 RedisSnapshotSpec。

Convenience SandboxSnapshotSpec for Redis-backed snapshot storage.

构造器摘要Constructor Summary

构造器Constructor说明Description
public RedisSnapshotSpec(UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds)
初始化 `RedisSnapshotSpec` 实例。
Creates a Redis snapshot spec.

构造器详情Constructor Detail

RedisSnapshotSpec

public RedisSnapshotSpec(UnifiedJedis jedis, String keyPrefix, Integer ttlSeconds)

初始化 RedisSnapshotSpec 实例。

Creates a Redis snapshot spec.

参数Parameters
名称Name类型Type说明Description
jedisUnifiedJedisjedis(类型 `UnifiedJedis`)。initialized jedis client
keyPrefixString键 Prefix(类型 `String`)。redis key prefix (optional)
ttlSecondsInteger存活时间秒(类型 `Integer`)。optional TTL in seconds (null or negative means no TTL)
源码Source io/agentscope/extensions/redis/snapshot/RedisSnapshotSpec.java:34–36

继承成员Inherited Members

继承自Methods inherited from RemoteSnapshotSpec
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.