2017 © Pedro Peláez
 

library cache

Rollerworks Cache Component

image

rollerworks/cache

Rollerworks Cache Component

  • Friday, January 1, 2016
  • by sstok
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,536 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Cache Component

SensioLabsInsight Build Status, (*1)

The Rollerworks Cache component provides a Session based cache-driver for Doctrine Common. (Cache data is stored in a session)., (*2)

Installation

This Component uses Composer to manage its dependencies., (*3)

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:, (*4)

curl -s http://getcomposer.org/installer | php

Then add the following to your composer.json file:, (*5)

// composer.json
{
    // ...
    require: {
        // ...
        "rollerworks/cache": "~1.0"
    }
}

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:, (*6)

$ php composer.phar update rollerworks/cache

Now, Composer will automatically download all required files, and install them for you., (*7)

That's it! You can now use the Rollerworks Cache Component., (*8)

Usage

This component depends on the Symfony HttpFoundation Component and Doctrine Common. Usage is very simple., (*9)


use Symfony\Component\HttpFoundation\Session\Session; use Rollerworks\Component\Cache\SessionCache; $session = new Session(); $session->start(); // ... // The first parameter of the SessionCache must be a `Symfony\Component\HttpFoundation\Session\Session` object. // The second parameter is an optional session storageKey that used for storing the session, default is '_rollerworks_cache'. // The third parameter is an optional SessionCacheBag object // When a SessionCacheBag is provided, it must be registered at the session by calling registerBag() on the $session object. $sessionCacheDriver = new SessionCache($session, '_my_cache'); // Now you can use the $sessionCacheDriver object for any Doctrine Caching. // See the resources below for more information.

Resources

Doctrine Caching http://docs.doctrine-project.org/en/2.0.x/reference/caching.html, (*10)

This Component is released under MIT license., (*11)

You can run the unit tests with the following command:, (*12)

phpunit

The Versions

01/01 2016

dev-master

9999999-dev

Rollerworks Cache Component

  Sources   Download

MIT

The Requires

 

by Sebastiaan Stok

cache doctrine symfony rollerworks

05/12 2015

v1.2.0

1.2.0.0

Rollerworks Cache Component

  Sources   Download

MIT

The Requires

 

by Sebastiaan Stok

cache doctrine symfony rollerworks

11/06 2014

v1.1.1

1.1.1.0

Rollerworks Cache Component

  Sources   Download

MIT

The Requires

 

by Sebastiaan Stok

cache doctrine symfony rollerworks

23/07 2013

v1.1.0

1.1.0.0

Rollerworks Cache Component

  Sources   Download

MIT

The Requires

 

by Sebastiaan Stok

cache doctrine symfony rollerworks

25/03 2013

v1.0

1.0.0.0

Rollerworks Cache Component

  Sources   Download

MIT

The Requires

 

by Sebastiaan Stok

cache doctrine symfony rollerworks