PHPackages                             rollerworks/cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rollerworks/cache

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

rollerworks/cache
=================

Rollerworks Cache Component

v1.2.0(10y ago)12.1k11MITPHPPHP &gt;=5.3

Since Mar 25Pushed 10y agoCompare

[ Source](https://github.com/rollerworks/Cache)[ Packagist](https://packagist.org/packages/rollerworks/cache)[ RSS](/packages/rollerworks-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (1)

Cache Component
===============

[](#cache-component)

[![SensioLabsInsight](https://camo.githubusercontent.com/b1241d60feb7ba9f7e89bbe04879fdccff1037eba41ce12da4d4fb4b65d9bfbb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33663961363332632d653032342d346539632d393666642d6562363238393738653038642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3f9a632c-e024-4e9c-96fd-eb628978e08d)[![Build Status](https://camo.githubusercontent.com/a5191e5c4157acf5a63fef4bf5c41ef1f6770695a331a25ec5d39428d24c5147/68747470733a2f2f7472617669732d63692e6f72672f726f6c6c6572776f726b732f43616368652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/rollerworks/Cache)

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

Installation
------------

[](#installation)

This Component uses Composer to manage its dependencies.

If you don't have Composer yet, download it following the instructions on  or just run the following command:

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

```

Then add the following to your `composer.json` file:

```
// 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:

```
$ php composer.phar update rollerworks/cache
```

Now, Composer will automatically download all required files, and install them for you.

That's it! You can now use the Rollerworks Cache Component.

Usage
-----

[](#usage)

This component depends on the Symfony HttpFoundation Component and Doctrine Common. Usage is very simple.

```
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
---------

[](#resources)

Doctrine Caching

This Component is released under MIT license.

You can run the unit tests with the following command:

```
phpunit

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~328 days

Total

4

Last Release

3817d ago

PHP version history (2 changes)v1.0PHP &gt;=5.3.3

v1.2.0PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0e812c04e848e9cc3afe6e966d2b81e81308124d96ce5f54eff4db0f8db0ea9?d=identicon)[sstok](/maintainers/sstok)

---

Top Contributors

[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (21 commits)")

---

Tags

symfonydoctrinecacherollerworks

### Embed Badge

![Health badge](/badges/rollerworks-cache/health.svg)

```
[![Health](https://phpackages.com/badges/rollerworks-cache/health.svg)](https://phpackages.com/packages/rollerworks-cache)
```

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[api-platform/schema-generator

Various tools to generate a data model based on Schema.org vocables

4714.2M7](/packages/api-platform-schema-generator)[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

43437.0k](/packages/cache-cache-bundle)[cache/doctrine-adapter

A PSR-6 cache implementation using Doctrine. This implementation supports tags

151.0M21](/packages/cache-doctrine-adapter)[onurb/doctrine-yuml-bundle

Symfony Bundle to visualize the mapping of your entities with Yuml

4198.6k](/packages/onurb-doctrine-yuml-bundle)[kdyby/doctrine-cache

Doctrine Cache bridge for Nette Framework

101.3M19](/packages/kdyby-doctrine-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
