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

ActiveLibrary[Caching](/categories/caching)

realpage/simple-cache
=====================

Simple caching based on the proposed PSR-16

v0.2.1(9y ago)28MITPHPPHP ~7.0

Since Aug 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jlaswell/simple-cache)[ Packagist](https://packagist.org/packages/realpage/simple-cache)[ Docs](https://github.com/realpage/simple-cache)[ RSS](/packages/realpage-simple-cache/feed)WikiDiscussions master Synced 2d ago

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

simple-cache
============

[](#simple-cache)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85f4f8dc549c6a412c6683c41ac0e2c07ed638131b74963974ca385508b04449/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6c617377656c6c2f73696d706c652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jlaswell/simple-cache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ffc18d8d4ec79c7edc83b06bcfbf451b2a6a21305a68d04dd4d18467f715f97d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6c617377656c6c2f73696d706c652d63616368652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jlaswell/simple-cache)[![Coverage Status](https://camo.githubusercontent.com/e953fe2e6356b2f14899893ce841c145d4ed7dd5ced420d9f3f2768cf710bd94/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a6c617377656c6c2f73696d706c652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jlaswell/simple-cache/code-structure)[![Quality Score](https://camo.githubusercontent.com/79490199da7c5d7088f2a1ccb21de76b16d09662032a3f564529410490c450ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a6c617377656c6c2f73696d706c652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jlaswell/simple-cache)[![Total Downloads](https://camo.githubusercontent.com/3aa42bf553c89c76ad49dbb49b43d1c0e2d72b5dbd53f8f745fa2df302b2b6d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6c617377656c6c2f73696d706c652d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jlaswell/simple-cache)

Simple implementation of the proposed [psr-16 simplecache standard](https://github.com/php-fig/simplecache). It is recommended that you familiarize yourself with [the proposal](https://github.com/php-fig/fig-standards/blob/master/proposed/simplecache.md)when using this package.

Install
-------

[](#install)

Via Composer

```
$ composer require jlaswell/simple-cache
```

Usage
-----

[](#usage)

Single values

```
$cache = new Jlaswell\SimpleCache\ArrayCache();
$cache->set('key1' 'value1');
// Do operations
$key1 = $cache->get('key1');
```

Multiple values

```
$cache = new Jlaswell\SimpleCache\ArrayCache();
$cache->setMultiple(['key1' => 'value1', 'key2' => 'value2']);
// Do operations
$data = $cache->getMultiple(['key1', 'key2']);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Tests for simple-cache are designed to be run against running instances of each of the available drivers. This means that we utilize Docker to run instances of each driver such as redis during testing. The following will start up all of the available drivers and run all of the available tests.

```
$ docker-compose up -d
$ composer test
```

simple-cache centralizes most unit tests into a single trait that is used for each driver's unit test. Each unit test simply implements a `buildCache` method, uses the `CacheInterfaceTestCases` trait, and tests will be run for that driver. The [ArrayCacheTest](https://github.com/jlaswell/simple-cache/blob/master/tests/ArrayCacheTest.php)is a good example to understand the structure and trait usage.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [John Laswell](https://github.com/jlaswell)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

3589d ago

Major Versions

v0.2.1 → v1.0.0-beta2016-09-02

### Community

Maintainers

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

---

Top Contributors

[![jlaswell](https://avatars.githubusercontent.com/u/1676217?v=4)](https://github.com/jlaswell "jlaswell (8 commits)")

---

Tags

simple-cacherealpage

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M5](/packages/sabre-cache)[voku/simple-cache

Simple Cache library

332.7M10](/packages/voku-simple-cache)

PHPackages © 2026

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