Skip to content

Commit

Permalink
update use symfony cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Aug 5, 2022
1 parent e5a0326 commit 8e82695
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,14 @@
//'psx_filter_pre' => [],
//'psx_filter_post' => [],

// A closure which returns a doctrine cache implementation. If null the filesystem cache is used
// A closure which returns a symfony cache implementation. If null the filesystem cache is used. Please take a look
// at the repository to see all available adapter: https://github.com/symfony/cache
/*
'psx_cache_factory' => function($config, $namespace){
$memcached = new \Memcached();
$memcached->addServer(getenv('FUSIO_MEMCACHE_HOST'), getenv('FUSIO_MEMCACHE_PORT'));
'psx_cache_factory' => function($config, $namespace){
$client = new \Memcached();
$client->addServer(getenv('FUSIO_MEMCACHE_HOST'), getenv('FUSIO_MEMCACHE_PORT'));
$memcache = new \Doctrine\Common\Cache\MemcachedCache();
$memcache->setMemcached($memcached);
$memcache->setNamespace($namespace);
return $memcache;
return new \Symfony\Component\Cache\Adapter\MemcachedAdapter($client, $namespace);
},
*/

Expand Down

0 comments on commit 8e82695

Please sign in to comment.