3 use Illuminate\Support\Str;
8 |--------------------------------------------------------------------------
10 |--------------------------------------------------------------------------
12 | This option controls the default cache connection that gets used while
13 | using this caching library. This connection is used when another is
14 | not explicitly specified when executing a given caching function.
18 'default' => env('CACHE_DRIVER', 'file'),
21 |--------------------------------------------------------------------------
23 |--------------------------------------------------------------------------
25 | Here you may define all of the cache "stores" for your application as
26 | well as their drivers. You may even define multiple stores for the
27 | same cache driver to group types of items stored in your caches.
29 | Supported drivers: "apc", "array", "database", "file",
30 | "memcached", "redis", "dynamodb", "octane", "null"
46 'driver' => 'database',
49 'lock_connection' => null,
54 'path' => storage_path('framework/cache'),
58 'driver' => 'memcached',
59 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
61 env('MEMCACHED_USERNAME'),
62 env('MEMCACHED_PASSWORD'),
65 // Memcached::OPT_CONNECT_TIMEOUT => 2000,
67 'servers' => env('CACHE_DRIVER') === 'memcached' ? $memcachedServers : [],
72 'connection' => 'default',
73 'lock_connection' => 'default',
77 'driver' => 'dynamodb',
78 'key' => env('AWS_ACCESS_KEY_ID'),
79 'secret' => env('AWS_SECRET_ACCESS_KEY'),
80 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
81 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
82 'endpoint' => env('DYNAMODB_ENDPOINT'),
92 |--------------------------------------------------------------------------
94 |--------------------------------------------------------------------------
96 | When utilizing a RAM based store such as APC or Memcached, there might
97 | be other applications utilizing the same cache. So, we'll specify a
98 | value to get prefixed to all our keys so we can avoid collisions.
102 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache'),