PHPackages                             perimeter/cache-bundle - 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. [Caching](/categories/caching)
4. /
5. perimeter/cache-bundle

ActiveLibrary[Caching](/categories/caching)

perimeter/cache-bundle
======================

Cache integration for the Memento caching library into Symfony2 and Perimeter API Gateway

v0.1.1(8y ago)81.2k2MITPHPPHP &gt;=5.3.3

Since Feb 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/perimeter/CacheBundle)[ Packagist](https://packagist.org/packages/perimeter/cache-bundle)[ RSS](/packages/perimeter-cache-bundle/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Perimeter CacheBundle
=====================

[](#perimeter-cachebundle)

[![Build Status](https://camo.githubusercontent.com/9181add43beaed0fe1a3587411e05e801d1ccee5501f11a40ecd9e87567d9163/68747470733a2f2f7472617669732d63692e6f72672f706572696d657465722f436163686542756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/perimeter/CacheBundle)

A Symfony Bundle that wraps the [memento caching library](https://github.com/perimeter/memento) and provides an extensible interface for integration with the Perimeter API Gateway.

Usage
-----

[](#usage)

You can access the `memento` caching library using the service container

```
// get the cache client
$memento = $container->get('memento.client');
```

Or you can use the perimeter caching service, which implements `Perimeter\CacheBundle\Cache\CacheServiceInterface` in order to be interchangeable with other caching services.

Prefixes
--------

[](#prefixes)

The `perimeter.cache` service also supports cache prefixes, which can be important when deploying to multiple environments:

*Production config*

```

prod
```

*Beta config*

```

beta
```

This will ensure that if your cache engine is shared across environments (i.e. beta and prod share memcache or redis instances) the caching does not collide.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~958 days

Total

2

Last Release

3188d ago

### Community

Maintainers

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

---

Top Contributors

[![bshaffer](https://avatars.githubusercontent.com/u/103941?v=4)](https://github.com/bshaffer "bshaffer (6 commits)")[![garyr](https://avatars.githubusercontent.com/u/449938?v=4)](https://github.com/garyr "garyr (2 commits)")

---

Tags

rediscachefilememcacheapi-gatewayperimetermemento

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[matomo/cache

PHP caching library based on Doctrine cache

381.3M21](/packages/matomo-cache)[garyr/memento

Lightweight cache library

186.6k1](/packages/garyr-memento)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.4k](/packages/ihor-cachalot)[perimeter/rate-limiter-php

A very simple Rate Limiter for PHP

1715.4k1](/packages/perimeter-rate-limiter-php)

PHPackages © 2026

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