Skip to content

cwreden/SilexStashService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilexStashService

The stash cache service for silex.

Services

  • stash => StashService
  • stash.cache => Default Pool
  • stash.caches => Pimple with all registered Pool classes

Register a new cache pool on runtime

You can register a new cache by using the 'stash.cache.register'-function.


$app['stash.cache.register']('myNewCachePool', array(
    'driver' => 'apc'
));

Possible drivers

  • memory
  • file_system
  • redis
  • sqlite
  • apc

Options


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
);

Links

About

The stash cache service for silex.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages