Skip to content

af cache

Serve the forge's build cache to builds on this machine

Starts a local endpoint for main’s build cache that Gradle (its HTTP build cache) and sccache (its WebDAV backend) can read from, prints the environment variables that point each tool at it, and serves until stopped. The endpoint is read-only: local builds never write to the cache. You can read cache entries only if you may read every folder; otherwise every lookup is a miss.

Usage

af cache [OPTIONS]

Options

  • --listen <LISTEN>

    Address to listen on; by default a free port on this machine’s loopback interface

    Default: 127.0.0.1:0

Global options

Every af command also takes the global options.

Examples

af cache --listen 127.0.0.1:7780

Type to search…

↑↓ navigate↵ selectEsc close