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/cache",
"url": "${REDIS_URL}",
"prefix": "${APP_NAME:rustlavel}:"
}Structs§
- Cache
Config - Cache
Store - The application’s handle on the cache.
Enums§
- Driver
- Which backend to build, and what it needs.