Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Commit a3c586d

Browse files
committed
Cache config support w7corp/easywechat#449
1 parent 2a905bb commit a3c586d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cache.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ $redis->connect('redis_host', 6379);
2222

2323
$cacheDriver->setRedis($redis);
2424

25-
$app->cache = $cacheDriver;
25+
$options = [
26+
'debug' => false,
27+
'app_id' => $wechatInfo['app_id'],
28+
'secret' => $wechatInfo['app_secret'],
29+
'token' => $wechatInfo['token'],
30+
'aes_key' => $wechatInfo['aes_key'], // 可选
31+
'cache' => $cache,
32+
];
33+
34+
$wechatApp = new Application($options);
2635
```
2736

2837
### Laravel 中使用

0 commit comments

Comments
 (0)