RollerworksCacheBundle
, (*1)
This bundle integrates the Rollerworks Cache Component in your Symfony application., (*2)
The Rollerworks Cache component provides a Session based cache-driver
for Doctrine Common. (Cache data is stored in a session)., (*3)
Installation
The RollerworksCacheBundle uses Composer to manage its dependencies., (*4)
If you don't have Composer yet, download it following the instructions on
http://getcomposer.org/, (*5)
Then add the rollerworks/cache-bundle
package to your composer.json with:, (*6)
$ composer require "rollerworks/cache-bundle"
Now, Composer will automatically download all required files, and install them
for you. All that is left to do is to update your AppKernel.php
file, and
register the new bundle:, (*7)
<?php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new Rollerworks\Bundle\CacheBundle\RollerworksCacheBundle(),
// ...
);
The bundle is comes pre-configured, ready for usage.
But for clarity, add the following to your config file:, (*8)
``` yaml, (*9)
app/config/config.yml
rollerworks_cache:
session:
# Storage key that used for storing the session
storage_key: _rollerworks_cache, (*10)
# Session-bag name
bag_name: cache
```, (*11)
Congratulations! You're ready!, (*12)
You can get the session-storage Cache-Driver service with
"rollerworks_cache.driver.session_driver".
Resources
This Component is released under MIT license., (*13)