Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
8d9bbc1c
Commit
8d9bbc1c
authored
Dec 16, 2014
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cache configuration.
parent
3646070d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
46 deletions
+34
-46
cache.php
config/cache.php
+34
-46
No files found.
config/cache.php
View file @
8d9bbc1c
...
...
@@ -4,71 +4,59 @@ return [
/*
|--------------------------------------------------------------------------
| Default Cache
Driver
| Default Cache
Store
|--------------------------------------------------------------------------
|
| This option controls the default cache "driver" that will be used when
| using the Caching library. Of course, you may use other drivers any
| time you wish. This is the default when another is not specified.
|
| Supported: "file", "database", "apc", "memcached", "redis", "array"
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'd
river
'
=>
env
(
'CACHE_DRIVER'
)
?:
'file'
,
'd
efault
'
=>
env
(
'CACHE_DRIVER'
)
?:
'file'
,
/*
|--------------------------------------------------------------------------
|
File Cache Location
|
Cache Stores
|--------------------------------------------------------------------------
|
|
When using the "file" cache driver, we need a location where the cache
|
files may be stored. A sensible default has been specified, but you
|
are free to change it to any other place on disk that you desire
.
|
Here you may define all of the cache "stores" for your application as
|
well as their drivers. You may even define multiple stores for the
|
same cache driver to group types of items stored in your caches
.
|
*/
'
path'
=>
storage_path
()
.
'/framework/cache'
,
'
stores'
=>
[
/*
|--------------------------------------------------------------------------
| 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.
|
*/
'apc'
=>
[
'driver'
=>
'apc'
],
'connection'
=>
null
,
'array'
=>
[
'driver'
=>
'array'
],
/*
|--------------------------------------------------------------------------
| Database Cache Table
|--------------------------------------------------------------------------
|
| 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.
|
*/
'database'
=>
[
'driver'
=>
'database'
,
'table'
=>
'cache'
,
],
'table'
=>
'cache'
,
'file'
=>
[
'driver'
=>
'file'
,
'path'
=>
storage_path
()
.
'/framework/cache'
,
],
/*
|--------------------------------------------------------------------------
| Memcached Servers
|--------------------------------------------------------------------------
|
| 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.
|
*/
'memcached'
=>
[
'driver'
=>
'memcached'
,
'servers'
=>
[
'host'
=>
'127.0.0.1'
,
'port'
=>
11211
,
'weight'
=>
100
],
],
'redis'
=>
[
'driver'
=>
'redis'
],
'memcached'
=>
[
[
'host'
=>
'127.0.0.1'
,
'port'
=>
11211
,
'weight'
=>
100
],
],
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment