You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.5 KiB

8 years ago
  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/data'),
  41. ],
  42. 'memcached' => [
  43. 'driver' => 'memcached',
  44. 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
  45. 'sasl' => [
  46. env('MEMCACHED_USERNAME'),
  47. env('MEMCACHED_PASSWORD'),
  48. ],
  49. 'options' => [
  50. // Memcached::OPT_CONNECT_TIMEOUT => 2000,
  51. ],
  52. 'servers' => [
  53. [
  54. 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
  55. 'port' => env('MEMCACHED_PORT', 11211),
  56. 'weight' => 100,
  57. ],
  58. ],
  59. ],
  60. 'redis' => [
  61. 'driver' => 'redis',
  62. 'connection' => 'default',
  63. ],
  64. ],
  65. /*
  66. |--------------------------------------------------------------------------
  67. | Cache Key Prefix
  68. |--------------------------------------------------------------------------
  69. |
  70. | When utilizing a RAM based store such as APC or Memcached, there might
  71. | be other applications utilizing the same cache. So, we'll specify a
  72. | value to get prefixed to all our keys so we can avoid collisions.
  73. |
  74. */
  75. 'prefix' => 'laravel',
  76. ];