Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
24286a60
Commit
24286a60
authored
8 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
Habe den Cache auf einen zentralen Server verlagert.
parent
7a39720b
No related branches found
No related tags found
1 merge request
!1365
Resolve "Filter Options for MetaGer"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/cache.php
+18
-18
18 additions, 18 deletions
config/cache.php
config/database.php
+42
-37
42 additions, 37 deletions
config/database.php
with
60 additions
and
55 deletions
config/cache.php
+
18
−
18
View file @
24286a60
...
@@ -11,7 +11,7 @@ return [
...
@@ -11,7 +11,7 @@ return [
| using this caching library. This connection is used when another is
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
| not explicitly specified when executing a given caching function.
|
|
*/
*/
'default'
=>
env
(
'CACHE_DRIVER'
,
'redis'
),
'default'
=>
env
(
'CACHE_DRIVER'
,
'redis'
),
...
@@ -24,43 +24,43 @@ return [
...
@@ -24,43 +24,43 @@ return [
| well as their drivers. You may even define multiple stores for the
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
| same cache driver to group types of items stored in your caches.
|
|
*/
*/
'stores'
=>
[
'stores'
=>
[
'apc'
=>
[
'apc'
=>
[
'driver'
=>
'apc'
,
'driver'
=>
'apc'
,
],
],
'array'
=>
[
'array'
=>
[
'driver'
=>
'array'
,
'driver'
=>
'array'
,
],
],
'database'
=>
[
'database'
=>
[
'driver'
=>
'database'
,
'driver'
=>
'database'
,
'table'
=>
'cache'
,
'table'
=>
'cache'
,
'connection'
=>
null
,
'connection'
=>
null
,
],
],
'file'
=>
[
'file'
=>
[
'driver'
=>
'file'
,
'driver'
=>
'file'
,
'path'
=>
storage_path
(
'framework/cache'
),
'path'
=>
storage_path
(
'framework/cache'
),
],
],
'memcached'
=>
[
'memcached'
=>
[
'driver'
=>
'memcached'
,
'driver'
=>
'memcached'
,
'servers'
=>
[
'servers'
=>
[
[
[
'host'
=>
env
(
'MEMCACHED_HOST'
,
'127.0.0.1'
),
'host'
=>
env
(
'MEMCACHED_HOST'
,
'127.0.0.1'
),
'port'
=>
env
(
'MEMCACHED_PORT'
,
11211
),
'port'
=>
env
(
'MEMCACHED_PORT'
,
11211
),
'weight'
=>
100
,
'weight'
=>
100
,
],
],
],
],
],
],
'redis'
=>
[
'redis'
=>
[
'driver'
=>
'redis'
,
'driver'
=>
'redis'
,
'connection'
=>
'
default
'
,
'connection'
=>
'
redisCache
'
,
],
],
],
],
...
@@ -74,8 +74,8 @@ return [
...
@@ -74,8 +74,8 @@ return [
| be other applications utilizing the same cache. So, we'll specify a
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
| value to get prefixed to all our keys so we can avoid collisions.
|
|
*/
*/
'prefix'
=>
'laravel'
,
'prefix'
=>
'laravel'
,
];
];
This diff is collapsed.
Click to expand it.
config/database.php
+
42
−
37
View file @
24286a60
...
@@ -11,9 +11,9 @@ return [
...
@@ -11,9 +11,9 @@ return [
| stdClass object; however, you may desire to retrieve records in an
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
| array format for simplicity. Here you can tweak the fetch style.
|
|
*/
*/
'fetch'
=>
PDO
::
FETCH_CLASS
,
'fetch'
=>
PDO
::
FETCH_CLASS
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -24,9 +24,9 @@ return [
...
@@ -24,9 +24,9 @@ return [
| to use as your default connection for all database work. Of course
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
| you may use many connections at once using the Database library.
|
|
*/
*/
'default'
=>
env
(
'DB_CONNECTION'
,
'mysql'
),
'default'
=>
env
(
'DB_CONNECTION'
,
'mysql'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -42,40 +42,40 @@ return [
...
@@ -42,40 +42,40 @@ return [
| so make sure you have the driver for your particular database of
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
| choice installed on your machine before you begin development.
|
|
*/
*/
'connections'
=>
[
'connections'
=>
[
'sqlite'
=>
[
'sqlite'
=>
[
'driver'
=>
'sqlite'
,
'driver'
=>
'sqlite'
,
'database'
=>
database_path
(
env
(
'DB_DATABASE'
,
'database.sqlite'
)),
'database'
=>
database_path
(
env
(
'DB_DATABASE'
,
'database.sqlite'
)),
'prefix'
=>
''
,
'prefix'
=>
''
,
],
],
'mysql'
=>
[
'mysql'
=>
[
'driver'
=>
'mysql'
,
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
'port'
=>
env
(
'DB_PORT'
,
'3306'
),
'port'
=>
env
(
'DB_PORT'
,
'3306'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'charset'
=>
'utf8'
,
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_unicode_ci'
,
'collation'
=>
'utf8_unicode_ci'
,
'prefix'
=>
''
,
'prefix'
=>
''
,
'strict'
=>
false
,
'strict'
=>
false
,
'engine'
=>
null
,
'engine'
=>
null
,
],
],
'pgsql'
=>
[
'pgsql'
=>
[
'driver'
=>
'pgsql'
,
'driver'
=>
'pgsql'
,
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
'port'
=>
env
(
'DB_PORT'
,
'5432'
),
'port'
=>
env
(
'DB_PORT'
,
'5432'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'charset'
=>
'utf8'
,
'charset'
=>
'utf8'
,
'prefix'
=>
''
,
'prefix'
=>
''
,
'schema'
=>
'public'
,
'schema'
=>
'public'
,
],
],
],
],
...
@@ -89,9 +89,9 @@ return [
...
@@ -89,9 +89,9 @@ return [
| your application. Using this information, we can determine which of
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
| the migrations on disk haven't actually been run in the database.
|
|
*/
*/
'migrations'
=>
'migrations'
,
'migrations'
=>
'migrations'
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -102,25 +102,30 @@ return [
...
@@ -102,25 +102,30 @@ return [
| provides a richer set of commands than a typical key-value systems
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
|
*/
*/
'redis'
=>
[
'redis'
=>
[
'cluster'
=>
false
,
'cluster'
=>
false
,
'default'
=>
[
'default'
=>
[
'host'
=>
env
(
'REDIS_HOST'
,
'localhost'
),
'host'
=>
env
(
'REDIS_HOST'
,
'localhost'
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'database'
=>
0
,
'database'
=>
0
,
],
],
'redisLogs'
=>
[
'redisLogs'
=>
[
'host'
=>
env
(
'REDIS_LOGS_HOST'
,
'localhost'
),
'host'
=>
env
(
'REDIS_LOGS_HOST'
,
'localhost'
),
'password'
=>
env
(
'REDIS_LOGS_PASSWORD'
,
env
(
'REDIS_PASSWORD'
,
null
)),
'password'
=>
env
(
'REDIS_LOGS_PASSWORD'
,
env
(
'REDIS_PASSWORD'
,
null
)),
'port'
=>
env
(
'REDIS_
MAIN
_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_
LOGS
_PORT'
,
6379
),
'database'
=>
1
,
'database'
=>
1
,
],
],
'redisCache'
=>
[
'host'
=>
env
(
'REDIS_CACHE_HOST'
,
'localhost'
),
'password'
=>
env
(
'REDIS_CACHE_PASSWORD'
,
env
(
'REDIS_PASSWORD'
,
null
)),
'port'
=>
env
(
'REDIS_CACHE_PORT'
,
6379
),
'database'
=>
2
,
],
],
],
];
];
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment