PHPackages                             bru2s/cache-service-provider - 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. bru2s/cache-service-provider

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

bru2s/cache-service-provider
============================

Modyfication of dafiti/cache-service-provider. Filesystems support added.

0.0.4.1(10y ago)0407MITPHPPHP &gt;=5.4.0

Since Apr 2Pushed 10y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (6)Used By (0)

Cache Service Provider
======================

[](#cache-service-provider)

[![Build Status](https://camo.githubusercontent.com/2d901703262d756591b4e6d37edc546ce0b6daeaf729eee1c7bf4002a593950a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6461666974692f63616368652d736572766963652d70726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dafiti/cache-service-provider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b429acead677eedaf6423aa013c22b1f2805d276e7239b50e8a1d1c8362fadf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461666974692f63616368652d736572766963652d70726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dafiti/cache-service-provider/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/fce42eb93724e044e94ff6e6f85b576547827189b98b0bbcd55b3d0bc740b627/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6461666974692f63616368652d736572766963652d70726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dafiti/cache-service-provider/?branch=master)[![HHVM](https://camo.githubusercontent.com/c7e63e69ee1f70b58b32be1c6ccd608fbddcb861dd368fdead446f64f474a105/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f6461666974692f63616368652d736572766963652d70726f76696465722e737667)](https://travis-ci.org/dafiti/cache-service-provider)[![Latest Stable Version](https://camo.githubusercontent.com/d838e8412f05df398756e32c4fbdf5d7634fe3ac98a2d67f8f9c76225ca3f77d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461666974692f63616368652d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dafiti/cache-service-provider)[![Total Downloads](https://camo.githubusercontent.com/c4c3ae3802bced2b6a56bb82908fd854eaf056c6957b2e70a51b8013992fefbb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461666974692f63616368652d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dafiti/cache-service-provider)[![License](https://camo.githubusercontent.com/a6211efdf806e1488a34355903f72748c5c2472f82ad9c2d86c007aff1ab2ea1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6461666974692f63616368652d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dafiti/cache-service-provider)

A [Silex](https://github.com/silexphp/Silex) Service Provider for [Doctrine Cache](https://github.com/doctrine/cache).

Instalation
-----------

[](#instalation)

```
{
    "require": {
        "bru2s/cache-service-provider": "dev-master"
    }
}
```

Adapters Availables
-------------------

[](#adapters-availables)

To use Memcache

```
sudo apt-get install php5-memcached

```

To use Memcached

```
sudo apt-get install php5-memcached

```

To use Redis Adapter install [PHPRedis](https://github.com/phpredis/phpredis)

```
git clone git@github.com:phpredis/phpredis.git
cd phpredis
phpize
./configure
make && make install

```

Usage
-----

[](#usage)

```
use Silex\Application;
use Bru2s\Silex\CacheServiceProvider;

$app = new Application();
$app['config'] = [
    'cache' => [
        'adapter'       => 'Memcache',
        'host'          => '127.0.0.1',
        'port'          => 11211,
        'connectable'   => true // If not need of one connection put FALSE (in Filesystem must be FALSE)
    ]
];

$app->register(new CacheServiceProvider());

$app['cache']->save('your-key', 'your-data');
$data = $app['cache']->fetch('your-key');

echo $data; // your-data
```

License
-------

[](#license)

MIT License

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~42 days

Total

5

Last Release

3897d ago

### Community

Maintainers

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

---

Top Contributors

[![Bru2s](https://avatars.githubusercontent.com/u/14291558?v=4)](https://github.com/Bru2s "Bru2s (8 commits)")[![faabiosr](https://avatars.githubusercontent.com/u/522883?v=4)](https://github.com/faabiosr "faabiosr (5 commits)")[![pcelta](https://avatars.githubusercontent.com/u/891198?v=4)](https://github.com/pcelta "pcelta (3 commits)")[![lw-omegacode](https://avatars.githubusercontent.com/u/149668342?v=4)](https://github.com/lw-omegacode "lw-omegacode (2 commits)")

---

Tags

doctrinecachesilexbru2s

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bru2s-cache-service-provider/health.svg)

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

###  Alternatives

[cache/doctrine-adapter

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

151.0M21](/packages/cache-doctrine-adapter)[cache/psr-6-doctrine-bridge

PSR-6 Doctrine bridge

151.0M4](/packages/cache-psr-6-doctrine-bridge)[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)
