dever 6 years ago
parent
commit
8a02fb74e1
1 changed files with 15 additions and 5 deletions
  1. 15 5
      config/env/localhost/default.php

+ 15 - 5
config/env/localhost/default.php

@@ -39,13 +39,20 @@ $config['database'] = array
 		'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
 		'charset' => 'utf8',
 	),
+'session' => array
+    (
+        'type' => 'redis',
+        'host' => '192.168.0.220',
+        'port' => '6379',
+        'password' => '',
+    )
 );
 
 # 缓存配置
 $config['cache'] = array
 (
     # 启用mysql数据库缓存,这个缓存是根据表名自动生成,dever::load形式和service的all、one形式均自动支持,无需手动添加
-    'mysql' => 3600,
+    'mysql' => 0,
     # 启用页面缓存 会根据当前的url来生成缓存,相当于页面静态化。
     'html' => 0,
     # 启用数据级别缓存 这个缓存是程序员自定义的:Dever::cache('name', 'value', 3600);
@@ -53,7 +60,7 @@ $config['cache'] = array
     # 启用load加载器缓存,一般不加载
     'load' => 0,
     # 启用load加载器的远程加载缓存
-    'curl' => 3600,
+    'curl' => 0,
 
     # 缓存精细控制,可以根据缓存的key(mysql为表名、service为小写类名,规则是模糊匹配),来控制每一条缓存
     'loadKey' => array
@@ -61,6 +68,11 @@ $config['cache'] = array
         # 定义缓存名为auth.data的缓存时间
         //'auth.data' => 200,
     ),
+    'mysqlNone' => array
+    (
+        'passport',
+        'oauth',
+    ),
     
     # 缓存清理的参数名,请通过shell=clearcache执行
     'shell' => 'clearcache',
@@ -74,14 +86,12 @@ $config['cache'] = array
     # 缓存保存方式,支持多个数据源、多台缓存服务器
     'store' => array
     (
-        /*
         array
         (
-            'host' => 'jstyle-cache',
+            'host' => '192.168.0.220',
             'port' => '6379',
             'weight' => 100,
         ),
-        */
     ),
 );