cache.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Cache Store
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default cache connection that gets used while
  9. | using this caching library. This connection is used when another is
  10. | not explicitly specified when executing a given caching function.
  11. |
  12. | Supported: "apc", "array", "database", "file", "memcached", "redis"
  13. |
  14. */
  15. 'default' => env('CACHE_DRIVER', 'file'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Cache Stores
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may define all of the cache "stores" for your application as
  22. | well as their drivers. You may even define multiple stores for the
  23. | same cache driver to group types of items stored in your caches.
  24. |
  25. */
  26. 'stores' => [
  27. 'apc' => [
  28. 'driver' => 'apc',
  29. ],
  30. 'array' => [
  31. 'driver' => 'array',
  32. ],
  33. 'database' => [
  34. 'driver' => 'database',
  35. 'table' => 'cache',
  36. 'connection' => null,
  37. ],
  38. 'file' => [
  39. 'driver' => 'file',
  40. 'path' => storage_path('framework/cache'),
  41. ],
  42. 'memcached' => [
  43. 'driver' => 'memcached',
  44. 'servers' => [
  45. [
  46. 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
  47. 'port' => env('MEMCACHED_PORT', 11211),
  48. 'weight' => 100,
  49. ],
  50. ],
  51. ],
  52. 'redis' => [
  53. 'driver' => 'redis',
  54. 'connection' => 'default',
  55. ],
  56. ],
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Cache Key Prefix
  60. |--------------------------------------------------------------------------
  61. |
  62. | When utilizing a RAM based store such as APC or Memcached, there might
  63. | be other applications utilizing the same cache. So, we'll specify a
  64. | value to get prefixed to all our keys so we can avoid collisions.
  65. |
  66. */
  67. 'prefix' => 'laravel',
  68. ];