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/data'),
58 'driver' => 'memcached',
59 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
61 env('MEMCACHED_USERNAME'),
62 env('MEMCACHED_PASSWORD'),
65 // Memcached::OPT_CONNECT_TIMEOUT => 2000,
69 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
70 'port' => env('MEMCACHED_PORT', 11211),
78 'connection' => 'cache',
79 'lock_connection' => 'default',
83 'driver' => 'dynamodb',
84 'key' => env('AWS_ACCESS_KEY_ID'),
85 'secret' => env('AWS_SECRET_ACCESS_KEY'),
86 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
87 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
88 'endpoint' => env('DYNAMODB_ENDPOINT'),
98 |--------------------------------------------------------------------------
100 |--------------------------------------------------------------------------
102 | When utilizing a RAM based store such as APC or Memcached, there might
103 | be other applications utilizing the same cache. So, we'll specify a
104 | value to get prefixed to all our keys so we can avoid collisions.
108 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),