2017-09-25 40 views
0

谷歌搜索和尝试,但失败。Fusio api缓存配置

如何配置Fusio以使用redis。

//'psx_cache_factory'  => null, 

这并不工作:

'psx_cache_factory'  => 'redis' 

这也行不通:

'psx_cache_factory'  => 'redis://127.0.0.1:6379', 
+0

请帮我[FUSIO认证失败(https://stackoverflow.com/questions/47028566/fusio-authentication-failed) –

回答

0

由开发商回答。

Github

'psx_cache_factory'  => function($config, $namespace){ 
    $client = new \Predis\Client([ 
     'scheme' => 'tcp', 
     'host' => '10.0.0.1', 
     'port' => 6379, 
    ]); 

    return new \Doctrine\Common\Cache\PredisCache($client); 
},