cache.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Cache Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The name of the default cache driver for your application.
  9. |
  10. | Caching can be used to increase the performance of your application
  11. | by storing commonly accessed data in memory or in a file.
  12. |
  13. | Supported Drivers: 'file', 'memcached', 'apc', 'redis'.
  14. |
  15. */
  16. 'driver' => 'file',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Cache Key
  20. |--------------------------------------------------------------------------
  21. |
  22. | This key will be prepended to item keys stored using Memcached and APC to
  23. | prevent collisions with other applications on the server.
  24. |
  25. */
  26. 'key' => 'laravel',
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Memcached Servers
  30. |--------------------------------------------------------------------------
  31. |
  32. | The Memcached servers used by your application.
  33. |
  34. | Memcached is a free and open source, high-performance, distributed memory
  35. | object caching system, generic in nature, but intended for use in speeding
  36. | up dynamic web applications by alleviating database load.
  37. |
  38. | For more information about Memcached, check out: http://memcached.org
  39. |
  40. */
  41. 'memcached' => array(
  42. array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
  43. ),
  44. );