The stash cache service for silex.
- stash => StashService
- stash.cache => Default Pool
- stash.caches => Pimple with all registered Pool classes
You can register a new cache by using the 'stash.cache.register'-function.
$app['stash.cache.register']('myNewCachePool', array(
'driver' => 'apc'
));
- memory
- file_system
- redis
- sqlite
- apc
array(
'driver' => 'apc', // use the driver oder driverClass option
'driverClass' => 'My\Driver',
'poolClass' => 'My\Pool',
'itemClass' => 'My\Item',
'loggerClass' => 'My\PSR\Logger'
... // all stash known options
);