Commit 515f9825 by 朱继来

Merge branch 'zjl_adjust_redis_20180813' into development

parents a3fed4c5 5403df08
......@@ -1704,7 +1704,8 @@ Class OrderController extends Controller
$info = $this->getPageInfo($request);
$express = Redis::get($key);
$redis = Redis::connection('read');
$express = $redis->get($key);
if (!$express) {
Redis::set($key, json_encode($express_fee));
......
......@@ -144,5 +144,12 @@ return [
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
'read' => [
'host' => env('REDIS_READ_HOST', ''),
'password' => env('REDIS_READ_PASSWORD', null),
'port' => env('REDIS_READ_PORT', 6379),
'database' => 0,
],
],
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment