Commit 9c1b004b authored by gaomingbo's avatar gaomingbo

增加设置discuz缓存接口

parent 1fc90dc0
...@@ -190,4 +190,18 @@ class Thread extends Client ...@@ -190,4 +190,18 @@ class Thread extends Client
{ {
return self::call('thread.getThreadCommentList',compact('tid')); return self::call('thread.getThreadCommentList',compact('tid'));
} }
/**
* 设置discuz缓存数据
*
* @param $key
* @param $value
* @param $ttl
* @return mixed
*/
public static function setDiscuzMemory($key, $value, $ttl)
{
return self::call('thread.setDiscuzMemory',compact('key', 'value', 'ttl'));
}
} }
\ No newline at end of file
...@@ -11,7 +11,7 @@ return [ ...@@ -11,7 +11,7 @@ return [
'apiUrl' => 'http://u.yunya.com/api/server', 'apiUrl' => 'http://u.yunya.com/api/server',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k', 'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k',
'rpcServer' => '192.168.99.4:30186' 'rpcServer' => '192.168.1.26:9503'
], ],
'xue' => [ 'xue' => [
'apiUrl' => 'http://xue.yunya.com/api', 'apiUrl' => 'http://xue.yunya.com/api',
...@@ -44,7 +44,7 @@ return [ ...@@ -44,7 +44,7 @@ return [
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA' 'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
], ],
'_async_server' => [ '_async_server' => [
'host' => '192.168.99.181', 'host' => '192.168.0.25',
'port' => 11300, 'port' => 11300,
'tube' => 'internal-api' 'tube' => 'internal-api'
] ]
......
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 to comment