toby/config/cache.php
2022-04-07 08:45:04 +02:00

32 lines
782 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Support\Str;
return [
"default" => env("CACHE_DRIVER", "redis"),
"stores" => [
"array" => [
"driver" => "array",
"serialize" => false,
],
"database" => [
"driver" => "database",
"table" => "cache",
"connection" => null,
"lock_connection" => null,
],
"file" => [
"driver" => "file",
"path" => storage_path("framework/cache/data"),
],
"redis" => [
"driver" => "redis",
"connection" => "cache",
"lock_connection" => "default",
],
],
"prefix" => env("CACHE_PREFIX", Str::slug(env("APP_NAME", "laravel"), "_") . "_cache"),
];