Left file: appwork-v1_2_0/laravel-starter/config/cache.php  
Right file: appwork-v1_2_1/laravel-starter/config/cache.php  
1 <?php = 1 <?php
2     2  
    -+ 3 use Illuminate\Support\Str;
      4  
3 return [ = 5 return [
4     6  
5     /*   7     /*
6     |--------------------------------------------------------------------------   8     |--------------------------------------------------------------------------
7     | Default Cache Store   9     | Default Cache Store
8     |--------------------------------------------------------------------------   10     |--------------------------------------------------------------------------
9     |   11     |
10     | This option controls the default cache connection that gets used while   12     | This option controls the default cache connection that gets used while
11     | using this caching library. This connection is used when another is   13     | using this caching library. This connection is used when another is
12     | not explicitly specified when executing a given caching function.   14     | not explicitly specified when executing a given caching function.
13     |   15     |
14     | Supported: "apc", "array", "database", "file", "memcached", "redis"   16     | Supported: "apc", "array", "database", "file", "memcached", "redis"
15     |   17     |
16     */   18     */
17     19  
18     'default' => env('CACHE_DRIVER', 'file'),   20     'default' => env('CACHE_DRIVER', 'file'),
19     21  
20     /*   22     /*
21     |--------------------------------------------------------------------------   23     |--------------------------------------------------------------------------
22     | Cache Stores   24     | Cache Stores
23     |--------------------------------------------------------------------------   25     |--------------------------------------------------------------------------
24     |   26     |
25     | Here you may define all of the cache "stores" for your application as   27     | 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   28     | 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     | same cache driver to group types of items stored in your caches.
28     |   30     |
29     */   31     */
30     32  
31     'stores' => [   33     'stores' => [
32     34  
33         'apc' => [   35         'apc' => [
34             'driver' => 'apc',   36             'driver' => 'apc',
35         ],   37         ],
36     38  
37         'array' => [   39         'array' => [
38             'driver' => 'array',   40             'driver' => 'array',
39         ],   41         ],
40     42  
41         'database' => [   43         'database' => [
42             'driver' => 'database',   44             'driver' => 'database',
43             'table' => 'cache',   45             'table' => 'cache',
44             'connection' => null,   46             'connection' => null,
45         ],   47         ],
46     48  
47         'file' => [   49         'file' => [
48             'driver' => 'file',   50             'driver' => 'file',
49             'path' => storage_path('framework/cache/data'),   51             'path' => storage_path('framework/cache/data'),
50         ],   52         ],
51     53  
52         'memcached' => [   54         'memcached' => [
53             'driver' => 'memcached',   55             'driver' => 'memcached',
54             'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),   56             'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
55             'sasl' => [   57             'sasl' => [
56                 env('MEMCACHED_USERNAME'),   58                 env('MEMCACHED_USERNAME'),
57                 env('MEMCACHED_PASSWORD'),   59                 env('MEMCACHED_PASSWORD'),
58             ],   60             ],
59             'options' => [   61             'options' => [
60                 // Memcached::OPT_CONNECT_TIMEOUT  => 2000,   62                 // Memcached::OPT_CONNECT_TIMEOUT  => 2000,
61             ],   63             ],
62             'servers' => [   64             'servers' => [
63                 [   65                 [
64                     'host' => env('MEMCACHED_HOST', '127.0.0.1'),   66                     'host' => env('MEMCACHED_HOST', '127.0.0.1'),
65                     'port' => env('MEMCACHED_PORT', 11211),   67                     'port' => env('MEMCACHED_PORT', 11211),
66                     'weight' => 100,   68                     'weight' => 100,
67                 ],   69                 ],
68             ],   70             ],
69         ],   71         ],
70     72  
71         'redis' => [   73         'redis' => [
72             'driver' => 'redis',   74             'driver' => 'redis',
73             'connection' => 'default', <> 75             'connection' => 'cache',
74         ], = 76         ],
75     77  
76     ],   78     ],
77     79  
78     /*   80     /*
79     |--------------------------------------------------------------------------   81     |--------------------------------------------------------------------------
80     | Cache Key Prefix   82     | Cache Key Prefix
81     |--------------------------------------------------------------------------   83     |--------------------------------------------------------------------------
82     |   84     |
83     | When utilizing a RAM based store such as APC or Memcached, there might   85     | When utilizing a RAM based store such as APC or Memcached, there might
84     | be other applications utilizing the same cache. So, we'll specify a   86     | be other applications utilizing the same cache. So, we'll specify a
85     | value to get prefixed to all our keys so we can avoid collisions.   87     | value to get prefixed to all our keys so we can avoid collisions.
86     |   88     |
87     */   89     */
88     90  
89     'prefix' => env( <>    
90         'CACHE_PREFIX',      
91        str_slug(env('APP_NAME', 'laravel'), '_').'_cache'   91     'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
92     ),      
93   = 92  
94 ];   93 ];