Update cache configuration.
This commit is contained in:
parent
3646070dc1
commit
8d9bbc1c26
|
@ -4,71 +4,59 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Cache Driver
|
| Default Cache Store
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option controls the default cache "driver" that will be used when
|
| This option controls the default cache connection that gets used while
|
||||||
| using the Caching library. Of course, you may use other drivers any
|
| using this caching library. This connection is used when another is
|
||||||
| time you wish. This is the default when another is not specified.
|
| not explicitly specified when executing a given caching function.
|
||||||
|
|
|
||||||
| Supported: "file", "database", "apc", "memcached", "redis", "array"
|
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => env('CACHE_DRIVER') ?: 'file',
|
'default' => env('CACHE_DRIVER') ?: 'file',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| File Cache Location
|
| Cache Stores
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "file" cache driver, we need a location where the cache
|
| Here you may define all of the cache "stores" for your application as
|
||||||
| files may be stored. A sensible default has been specified, but you
|
| well as their drivers. You may even define multiple stores for the
|
||||||
| are free to change it to any other place on disk that you desire.
|
| same cache driver to group types of items stored in your caches.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'path' => storage_path().'/framework/cache',
|
'stores' => [
|
||||||
|
|
||||||
/*
|
'apc' => [
|
||||||
|--------------------------------------------------------------------------
|
'driver' => 'apc'
|
||||||
| Database Cache Connection
|
],
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| When using the "database" cache driver you may specify the connection
|
|
||||||
| that should be used to store the cached items. When this option is
|
|
||||||
| null the default database connection will be utilized for cache.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'connection' => null,
|
'array' => [
|
||||||
|
'driver' => 'array'
|
||||||
|
],
|
||||||
|
|
||||||
/*
|
'database' => [
|
||||||
|--------------------------------------------------------------------------
|
'driver' => 'database',
|
||||||
| Database Cache Table
|
'table' => 'cache',
|
||||||
|--------------------------------------------------------------------------
|
],
|
||||||
|
|
|
||||||
| When using the "database" cache driver we need to know the table that
|
|
||||||
| should be used to store the cached items. A default table name has
|
|
||||||
| been provided but you're free to change it however you deem fit.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
'table' => 'cache',
|
'file' => [
|
||||||
|
'driver' => 'file',
|
||||||
|
'path' => storage_path().'/framework/cache',
|
||||||
|
],
|
||||||
|
|
||||||
/*
|
'memcached' => [
|
||||||
|--------------------------------------------------------------------------
|
'driver' => 'memcached',
|
||||||
| Memcached Servers
|
'servers' => [
|
||||||
|--------------------------------------------------------------------------
|
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
|
||||||
|
|
],
|
||||||
| Now you may specify an array of your Memcached servers that should be
|
],
|
||||||
| used when utilizing the Memcached cache driver. All of the servers
|
|
||||||
| should contain a value for "host", "port", and "weight" options.
|
'redis' => [
|
||||||
|
|
'driver' => 'redis'
|
||||||
*/
|
],
|
||||||
|
|
||||||
'memcached' => [
|
|
||||||
['host' => '127.0.0.1', 'port' => 11211, 'weight' => 100],
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue