<?php12use Illuminate\Support\Str;34return [5/*6|--------------------------------------------------------------------------7| Default Cache Store8|--------------------------------------------------------------------------9|10| This option controls the default cache store that will be used by the11| framework. This connection is utilized if another isn't explicitly12| specified when running a cache operation inside the application.13|14*/1516'default' => env('CACHE_STORE', env('CACHE_DRIVER', 'redis')),1718/*19|--------------------------------------------------------------------------20| Cache Stores21|--------------------------------------------------------------------------22|23| Here you may define all of the cache "stores" for your application as24| well as their drivers. You may even define multiple stores for the25| same cache driver to group types of items stored in your caches.26|27| Supported drivers: "array", "database", "file", "memcached",28| "redis", "octane", "null"29|30*/3132'stores' => [33'array' => [34'driver' => 'array',35'serialize' => false,36],3738'database' => [39'driver' => 'database',40'connection' => env('DB_CACHE_CONNECTION'),41'table' => env('DB_CACHE_TABLE', 'cache'),42'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),43'lock_table' => env('DB_CACHE_LOCK_TABLE'),44],4546'file' => [47'driver' => 'file',48'path' => storage_path('framework/cache/data'),49'lock_path' => storage_path('framework/cache/data'),50],5152'memcached' => [53'driver' => 'memcached',54'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),55'sasl' => [56env('MEMCACHED_USERNAME'),57env('MEMCACHED_PASSWORD'),58],59'options' => [60// Memcached::OPT_CONNECT_TIMEOUT => 2000,61],62'servers' => [63[64'host' => env('MEMCACHED_HOST', '127.0.0.1'),65'port' => env('MEMCACHED_PORT', 11211),66'weight' => 100,67],68],69],7071'redis' => [72'driver' => 'redis',73'connection' => env('REDIS_CACHE_CONNECTION', 'default'),74'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),75],7677'sessions' => [78'driver' => env('SESSION_DRIVER', 'database'),79'table' => 'sessions',80'connection' => env('SESSION_DRIVER') === 'redis' ? 'sessions' : null,81],8283'octane' => [84'driver' => 'octane',85],86],8788/*89|--------------------------------------------------------------------------90| Cache Key Prefix91|--------------------------------------------------------------------------92|93| When utilizing the APC, database, memcached, Redis, or DynamoDB cache94| stores there might be other applications using the same cache. For95| that reason, you may prefix every cache key to avoid collisions.96|97*/9899'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'pterodactyl'), '_') . '_cache_'),100];101102103