cache / cache-bundle
Symfony 2 bundle providing integration between PSR-6 compliant cache services and the framework. It supports cache for sessions, routing and Doctrine
Installs: 421 125
Dependents: 3
Suggesters: 2
Security: 0
Stars: 43
Watchers: 6
Forks: 16
Type:symfony-bundle
Requires
- php: ^5.6 || ^7.0
- cache/session-handler: ^1.0
- cache/taggable-cache: ^1.0
- nyholm/nsa: ^1.1
- symfony/config: ^2.7 || ^3.0 || ^4.0
- symfony/console: ^2.7 || ^3.0 || ^4.0
- symfony/dependency-injection: ^2.7 || ^3.0 || ^4.0
- symfony/framework-bundle: ^2.7 || ^3.0 || ^4.0
- symfony/http-foundation: ^2.7 || ^3.0 || ^4.0
- symfony/http-kernel: ^2.7 || ^3.0 || ^4.0
- symfony/var-dumper: ^2.7 || ^3.3 || ^4.0
Requires (Dev)
- cache/array-adapter: ^1.0
- cache/psr-6-doctrine-bridge: ^3.0
- doctrine/annotations: ^1.0
- matthiasnoback/symfony-dependency-injection-test: ^1.1 || ^2.3
- nyholm/symfony-bundle-test: ^1.2
- symfony/phpunit-bridge: ^3.3 || ^4.0
- symfony/routing: ^2.7 || ^3.0 || ^4.0
- symfony/serializer: ^2.7 || ^3.0 || ^4.0
- symfony/validator: ^2.7 || ^3.0 || ^4.0
Suggests
- cache/adapter-bundle: To register PSR-6 compliant cache implementations as services.
- cache/psr-6-doctrine-bridge: To be able to use Doctrine query, result and metadata cache.
README
This is a Symfony bundle that lets you you integrate your PSR-6 compliant cache service with the framework. It lets you cache your sessions, routes and Doctrine results and metadata. It also provides an integration with the debug toolbar. This bundle does not contain any pool implementation nor does it help you register cache pool services. You maybe interested in AdapterBundle which will help you configure and register PSR-6 cache pools as services.
This bundle is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at www.php-cache.com.
To Install
Run the following in your project root, assuming you have composer set up for your project
composer require cache/cache-bundle
Add the bundle to app/AppKernel.php
$bundles( // ... new Cache\CacheBundle\CacheBundle(), // ... );
Read the documentation at www.php-cache.com/symfony/cache-bundle.
Contribute
Contributions are very welcome! Send a pull request or report any issues you find on the issue tracker.