Skip to main content
The RAM resource exposes an in-memory filesystem mounted at some prefix such as /data/. All data lives in process memory and is lost on exit. No setup or credentials required.

Config

No configuration object needed - RAMResource() takes no arguments.

Filesystem Layout

The RAM filesystem starts empty. Files and directories are created on demand via commands like touch, mkdir, tee, cp, etc.
Paths are normalized with a leading /. The root directory / always exists.

Cache

The RAM resource uses IndexCacheStore with index_ttl = 0 (no expiry). Since all data is in-memory, the index is always fresh, no network calls or stale cache concerns.

Example

Shell Commands

The RAM resource supports the full set of shell commands since it handles real file content (text, binary, JSON, CSV, etc.):

Read Commands

Text Processing

File Operations

Path Utilities

Compression

Encoding

Data Format Support

Commands with format-specific variants for structured data files: These variants auto-detect the format by extension and convert to tabular text (CSV) for processing.

Use Cases

  • Testing: Fast filesystem for unit tests without I/O
  • Staging: Temporary data area during pipelines
  • Prototyping: Develop against a filesystem before switching to S3/disk
  • Caching: In-process data exchange between commands
  • Ephemeral workspaces: Create, process, discard - no cleanup needed