Changeset View
Changeset View
Standalone View
Standalone View
src/config/cache.php
Show All 33 Lines | return [ | ||||
'stores' => [ | 'stores' => [ | ||||
'apc' => [ | 'apc' => [ | ||||
'driver' => 'apc', | 'driver' => 'apc', | ||||
], | ], | ||||
'array' => [ | 'array' => [ | ||||
'driver' => 'array', | 'driver' => 'array', | ||||
'serialize' => false, | |||||
], | ], | ||||
'database' => [ | 'database' => [ | ||||
'driver' => 'database', | 'driver' => 'database', | ||||
'table' => 'cache', | 'table' => 'cache', | ||||
'connection' => null, | 'connection' => null, | ||||
'lock_connection' => null, | |||||
], | ], | ||||
'file' => [ | 'file' => [ | ||||
'driver' => 'file', | 'driver' => 'file', | ||||
'path' => storage_path('framework/cache/data'), | 'path' => storage_path('framework/cache/data'), | ||||
], | ], | ||||
'memcached' => [ | 'memcached' => [ | ||||
Show All 13 Lines | 'stores' => [ | ||||
'weight' => 100, | 'weight' => 100, | ||||
], | ], | ||||
], | ], | ||||
], | ], | ||||
'redis' => [ | 'redis' => [ | ||||
'driver' => 'redis', | 'driver' => 'redis', | ||||
'connection' => 'cache', | 'connection' => 'cache', | ||||
'lock_connection' => 'default', | |||||
], | ], | ||||
'dynamodb' => [ | 'dynamodb' => [ | ||||
'driver' => 'dynamodb', | 'driver' => 'dynamodb', | ||||
'key' => env('AWS_ACCESS_KEY_ID'), | 'key' => env('AWS_ACCESS_KEY_ID'), | ||||
'secret' => env('AWS_SECRET_ACCESS_KEY'), | 'secret' => env('AWS_SECRET_ACCESS_KEY'), | ||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), | ||||
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), | ||||
'endpoint' => env('DYNAMODB_ENDPOINT'), | 'endpoint' => env('DYNAMODB_ENDPOINT'), | ||||
], | ], | ||||
'octane' => [ | |||||
'driver' => 'octane', | |||||
], | |||||
], | ], | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Cache Key Prefix | | Cache Key Prefix | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| When utilizing a RAM based store such as APC or Memcached, there might | | 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 | | 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. | | value to get prefixed to all our keys so we can avoid collisions. | ||||
| | | | ||||
*/ | */ | ||||
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache_'), | ||||
]; | ]; |