cache.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Cache Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default cache "driver" that will be used when
  9. | using the Caching library. Of course, you may use other drivers any
  10. | time you wish. This is the default when another is not specified.
  11. |
  12. | Supported: "file", "database", "apc", "memcached", "redis", "array"
  13. |
  14. */
  15. 'driver' => 'file',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | File Cache Location
  19. |--------------------------------------------------------------------------
  20. |
  21. | When using the "file" cache driver, we need a location where the cache
  22. | files may be stored. A sensible default has been specified, but you
  23. | are free to change it to any other place on disk that you desire.
  24. |
  25. */
  26. 'path' => storage_path().'/framework/cache',
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Database Cache Connection
  30. |--------------------------------------------------------------------------
  31. |
  32. | When using the "database" cache driver you may specify the connection
  33. | that should be used to store the cached items. When this option is
  34. | null the default database connection will be utilized for cache.
  35. |
  36. */
  37. 'connection' => null,
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Database Cache Table
  41. |--------------------------------------------------------------------------
  42. |
  43. | When using the "database" cache driver we need to know the table that
  44. | should be used to store the cached items. A default table name has
  45. | been provided but you're free to change it however you deem fit.
  46. |
  47. */
  48. 'table' => 'cache',
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Memcached Servers
  52. |--------------------------------------------------------------------------
  53. |
  54. | Now you may specify an array of your Memcached servers that should be
  55. | used when utilizing the Memcached cache driver. All of the servers
  56. | should contain a value for "host", "port", and "weight" options.
  57. |
  58. */
  59. 'memcached' => [
  60. ['host' => '127.0.0.1', 'port' => 11211, 'weight' => 100],
  61. ],
  62. /*
  63. |--------------------------------------------------------------------------
  64. | Cache Key Prefix
  65. |--------------------------------------------------------------------------
  66. |
  67. | When utilizing a RAM based store such as APC or Memcached, there might
  68. | be other applications utilizing the same cache. So, we'll specify a
  69. | value to get prefixed to all our keys so we can avoid collisions.
  70. |
  71. */
  72. 'prefix' => 'laravel',
  73. ];