Skip to main content
Version: 3.4

MemoryStorageOptions

Index

Properties

optionallocalDataDirectory

localDataDirectory?: string = <p>process.env.CRAWLEE_STORAGE_DIR ?? ‘./storage’</p>

Path to directory where the data will also be saved.

optionalpersistStorage

persistStorage?: boolean = <p>true</p>

Whether the memory storage should also write its stored content to the disk.

You can also disable this by setting the CRAWLEE_PERSIST_STORAGE environment variable to false.

optionalwriteMetadata

writeMetadata?: boolean = <p>process.env.DEBUG?.includes(‘*’) ?? process.env.DEBUG?.includes(‘crawlee:memory-storage’) ?? false</p>

Whether to also write optional metadata files when storing to disk.