Lae/config/cache.php

65 lines
1.9 KiB
PHP
Raw Permalink Normal View History

2022-08-12 07:56:56 +00:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
2023-02-05 12:33:26 +00:00
'default' => env('CACHE_DRIVER', 'redis'),
2022-08-12 07:56:56 +00:00
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
2023-01-10 12:44:14 +00:00
| Here you may define all the cache "stores" for your application as
2022-08-12 07:56:56 +00:00
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
2022-11-06 11:28:22 +00:00
| Supported drivers: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb", "octane", "null"
|
2022-08-12 07:56:56 +00:00
*/
'stores' => [
'redis' => [
'driver' => 'redis',
2022-11-06 11:28:22 +00:00
'connection' => 'cache',
'lock_connection' => 'default',
2022-08-12 07:56:56 +00:00
],
2022-11-06 11:28:22 +00:00
2022-12-28 13:42:58 +00:00
'redis_2' => [
'driver' => 'redis',
'connection' => 'cache_2',
'lock_connection' => 'default',
],
2022-11-06 11:28:22 +00:00
'octane' => [
'driver' => 'octane',
],
2022-08-12 07:56:56 +00:00
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
2022-11-06 11:28:22 +00:00
| When utilizing the APC, database, memcached, Redis, or DynamoDB cache
| stores there might be other applications using the same cache. For
| that reason, you may prefix every cache key to avoid collisions.
2022-08-12 07:56:56 +00:00
|
*/
2023-01-30 16:14:07 +00:00
'prefix' => 'laev3_cache',
2022-08-12 07:56:56 +00:00
];