cache.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Cache Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The name of the default cache driver for your application. Caching can
  9. | be used to increase the performance of your application by storing any
  10. | commonly accessed data in memory, a file, or some other storage.
  11. |
  12. | A variety of awesome drivers are available for you to use with Laravel.
  13. | Some, like APC, are extremely fast. However, if that isn't an option
  14. | in your environment, try file or database caching.
  15. |
  16. | Drivers: 'file', 'memcached', 'apc', 'redis', 'database'.
  17. |
  18. */
  19. 'driver' => 'file',
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Cache Key
  23. |--------------------------------------------------------------------------
  24. |
  25. | This key will be prepended to item keys stored using Memcached and APC
  26. | to prevent collisions with other applications on the server. Since the
  27. | memory based stores could be shared by other applications, we need to
  28. | be polite and use a prefix to uniquely identifier our items.
  29. |
  30. */
  31. 'key' => 'laravel',
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Cache Database
  35. |--------------------------------------------------------------------------
  36. |
  37. | When using the database cache driver, this database table will be used
  38. | to store the cached item. You may also add a "connection" option to
  39. | the array to specify which database connection should be used.
  40. |
  41. */
  42. 'database' => array('table' => 'laravel_cache'),
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Memcached Servers
  46. |--------------------------------------------------------------------------
  47. |
  48. | The Memcached servers used by your application. Memcached is a free and
  49. | open source, high-performance, distributed memory caching system. It is
  50. | generic in nature but intended for use in speeding up web applications
  51. | by alleviating database load.
  52. |
  53. | For more information, check out: http://memcached.org
  54. |
  55. */
  56. 'memcached' => array(
  57. array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
  58. ),
  59. );