ObjectStorageSnapshotStoreOptionsType
이 콘텐츠는 아직 번역되지 않았습니다.
ObjectStorageSnapshotStoreOptionsType =
StoreSerializerOptionsBase&object
Defined in: src/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.ts:11
Type Declaration
Section titled “Type Declaration”backend
Section titled “backend”
readonlybackend:ObjectStorageBackend
The underlying storage layer (S3 / Filesystem / …).
compression?
Section titled “compression?”
readonlyoptionalcompression?:CompressionConfig|CompressionResolver
Compression — flat config or per-pid resolver. Default: { algorithm: 'gzip' }.
encryption?
Section titled “encryption?”
readonlyoptionalencryption?:EncryptionConfig|EncryptionResolver
Encryption — flat config or per-pid resolver. Default: { mode: 'none' }.
keepN?
Section titled “keepN?”
readonlyoptionalkeepN?:number
Keep this many snapshots per persistenceId; older ones are deleted on save. Default: 3.
maxDecompressedBytes?
Section titled “maxDecompressedBytes?”
readonlyoptionalmaxDecompressedBytes?:number
Cap on the decompressed size of a stored body in bytes — the
decompression-bomb guard on read (security audit #3). Default 512 MiB
(DEFAULT_MAX_DECOMPRESSED_BYTES); Infinity opts out. Raise it to
restore a legitimately large snapshot, or lower it for a tighter bound.
ownsBackend?
Section titled “ownsBackend?”
readonlyoptionalownsBackend?:boolean
Whether close() should also close the injected backend. Default
true — a standalone store owns the backend it was given. Set false
when the same backend is shared with another store (as
registerObjectStoragePlugins does across the snapshot + durable-state
stores) so one store’s close() can’t tear the backend out from under
the other; the owner closes it once.
prefix?
Section titled “prefix?”
readonlyoptionalprefix?:string
Prepended to every key before the persistenceId. Default: ”.
