SCCache is the spiritual successor to CCache, rewritten in Rust with an emphasis on distributed compile execution as well as caching. It is primarily used with the Rust toolchain, but can be used with nearly any C-like toolchain, like CCache.
SCCache supports many backends, including an HTTP-based backend and direct use of Redis.
SCCache provides the WebDAV adapter for plain HTTP or HTTP+TLS remote backends; it uses the
SCCACHE_WEBDAV_* set of variables, which should be set as demonstrated below:
|Your API key|
The HTTP backend is great because it is easy to understand, monitor, and diagnose; in some cases, though, the Redis-based adapter may perform better.
SCCache also supports caching via Redis-compliant backends. Buildless API endpoints natively speak Redis protocol. To configure this backend, you'll use the
SCCACHE_REDIS variable, which specifies a formatted connection URL. Here's an example:
Let's break this URL down into components:
|Activate TLS||Buildless uses TLS with publicly-verifiable certificates.|
|Redis username||The literal string |
|Redis password||Your API key should be used in this field.|
|Port||Buildless uses the standard Redis port, |
For more information about using Redis with Buildless, see our Buildless + Redis guide.
Updated about 1 month ago