Blame view

config/cache.php 2.02 KB
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  <?php
  
  return [
  
      /*
      |--------------------------------------------------------------------------
      | Default Cache Store
      |--------------------------------------------------------------------------
      |
      | This option controls the default cache connection that gets used while
      | using this caching library. This connection is used when another is
      | not explicitly specified when executing a given caching function.
      |
      */
  
      'default' => env('CACHE_DRIVER', 'apc'),
  
      /*
      |--------------------------------------------------------------------------
      | Cache Stores
      |--------------------------------------------------------------------------
      |
      | Here you may define all of the cache "stores" for your application as
      | well as their drivers. You may even define multiple stores for the
      | same cache driver to group types of items stored in your caches.
      |
      */
  
      'stores' => [
          'array' => [
              'driver' => 'array',
          ],
  
          'file' => [
              'driver' => 'file',
              'path'   => storage_path('framework/cache'),
          ],
  
          /**
           * This store is shared which means it persists between releases.
           */
          'shared' => [
              'driver' => 'apc',
              'prefix' => 'fr',
          ],
  
          'common' => [
              'driver' => 'apc',
              'prefix' => 'fr_'.app()->getRelease()
          ],
  
          /**
           * This store is available only to current release.
           */
          'apc' => [
              'driver' => 'apc',
          ],
      ],
  
      /*
      |--------------------------------------------------------------------------
      | Cache Key Prefix
      |--------------------------------------------------------------------------
      |
      | 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
      | value to get prefixed to all our keys so we can avoid collisions.
      |
      */
  
      'prefix' => 'fr_'.app()->getRelease(),
  
  ];