cache.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. */
  13. 'default' => env('CACHE_DRIVER') ?: 'file',
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Cache Stores
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may define all of the cache "stores" for your application as
  20. | well as their drivers. You may even define multiple stores for the
  21. | same cache driver to group types of items stored in your caches.
  22. |
  23. */
  24. 'stores' => [
  25. 'apc' => [
  26. 'driver' => 'apc'
  27. ],
  28. 'array' => [
  29. 'driver' => 'array'
  30. ],
  31. 'database' => [
  32. 'driver' => 'database',
  33. 'table' => 'cache',
  34. ],
  35. 'file' => [
  36. 'driver' => 'file',
  37. 'path' => storage_path().'/framework/cache',
  38. ],
  39. 'memcached' => [
  40. 'driver' => 'memcached',
  41. 'servers' => [
  42. 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
  43. ],
  44. ],
  45. 'redis' => [
  46. 'driver' => 'redis'
  47. ],
  48. ],
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Cache Key Prefix
  52. |--------------------------------------------------------------------------
  53. |
  54. | When utilizing a RAM based store such as APC or Memcached, there might
  55. | be other applications utilizing the same cache. So, we'll specify a
  56. | value to get prefixed to all our keys so we can avoid collisions.
  57. |
  58. */
  59. 'prefix' => 'laravel',
  60. ];