Lae/config/cache.php

57 lines
1.6 KiB
PHP
Raw Normal View History

2022-08-12 07:56:56 +00:00
<?php
2022-10-30 07:07:26 +00:00
// use Illuminate\Support\Str;
2022-08-12 07:56:56 +00:00
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.
|
2022-09-08 16:12:02 +00:00
| Supported: "apc", "array", "database", "file", "memcached", "redis"
|
2022-08-12 07:56:56 +00:00
*/
2022-09-08 16:12:02 +00:00
'default' => 'redis',
2022-08-12 07:56:56 +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.
|
*/
'stores' => [
'redis' => [
'driver' => 'redis',
2022-09-08 16:12:02 +00:00
'connection' => env('CACHE_REDIS_CONNECTION', 'cache'),
2022-08-12 07:56:56 +00:00
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
2022-09-08 16:12:02 +00:00
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
2022-08-12 07:56:56 +00:00
|
*/
2022-09-08 16:12:02 +00:00
'prefix' => env(
'CACHE_PREFIX',
'laev3_cache'
),
2022-08-12 07:56:56 +00:00
];