Ingen beskrivning

cache.php 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. return array(
  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().'/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' => array(
  60. array('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. );