2024-07-23 06:19:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Cache Store
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This option controls the default cache store that will be used by the
|
|
|
|
| framework. This connection is utilized if another isn't explicitly
|
|
|
|
| specified when running a cache operation inside the application.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-07-25 08:09:12 +00:00
|
|
|
'default' => 'redis',
|
2024-07-23 06:19:59 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Cache Stores
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may define all of the cache "stores" for your application as
|
|
|
|
| well as their drivers. You may even define multiple stores for the
|
|
|
|
| same cache driver to group types of items stored in your caches.
|
|
|
|
|
|
|
|
|
| Supported drivers: "array", "database", "file", "memcached",
|
|
|
|
| "redis", "dynamodb", "octane", "null"
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'stores' => [
|
|
|
|
'array' => [
|
|
|
|
'driver' => 'array',
|
|
|
|
'serialize' => false,
|
|
|
|
],
|
|
|
|
|
|
|
|
'redis' => [
|
|
|
|
'driver' => 'redis',
|
|
|
|
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
|
|
|
|
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
|
|
|
|
],
|
|
|
|
|
|
|
|
'octane' => [
|
|
|
|
'driver' => 'octane',
|
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Cache Key Prefix
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
|
|
|
|
| stores, there might be other applications using the same cache. For
|
|
|
|
| that reason, you may prefix every cache key to avoid collisions.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-07-25 08:09:12 +00:00
|
|
|
'prefix' => 'cache:',
|
2024-07-23 06:19:59 +00:00
|
|
|
|
|
|
|
];
|