|
@@ -42,8 +42,8 @@ class WatchController extends Controller
|
|
|
// $cache = new RedisAdapter($client);
|
|
|
// $app->rebind('cache', $cache);
|
|
|
|
|
|
-// $cache = new RedisAdapter(app('redis')->connection()->client());
|
|
|
-// $app->rebind('cache', $cache);
|
|
|
+ $cache = new RedisAdapter(app('redis')->connection()->client());
|
|
|
+ $app->rebind('cache', $cache);
|
|
|
|
|
|
$app->server->push(function ($message) use ($app, $account) {
|
|
|
log_record('消息', compact('message'));
|