Skip to main content

Module config

Module config 

Source
Expand description

Cache configuration and the driver factory.

An application picks a driver in config/cache.json (or .env), never in code, so the same binary runs on a laptop with the memory driver and in production against Redis:

{
  "driver": "${CACHE_DRIVER:memory}",
  "path":   "storage/framework/cache",
  "url":    "${REDIS_URL}",
  "prefix": "${APP_NAME:rustlavel}:"
}

Structs§

CacheConfig
CacheStore
The application’s handle on the cache.

Enums§

Driver
Which backend to build, and what it needs.