PHPackages                             dyweb/redis-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. dyweb/redis-cache

ActiveLibrary[Caching](/categories/caching)

dyweb/redis-cache
=================

Simple redis cache library with namespaces and PSR-6

v0.2.1(9y ago)5884[1 issues](https://github.com/dyweb/redis-cache/issues)MITPHPPHP &gt;=5.3.9

Since Oct 21Pushed 9y ago28 watchersCompare

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

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

RedisCache
==========

[](#rediscache)

[![License](https://camo.githubusercontent.com/1473c46d953f17a97d279fb2c4049df8ac1bb34e0dee136be5770526942d5f8f/68747470733a2f2f706f7365722e707567782e6f72672f64797765622f72656469732d63616368652f6c6963656e7365)](https://packagist.org/packages/dyweb/redis-cache)[![StyleCI](https://camo.githubusercontent.com/0c2d643702c26940aa311789fb3039959c51de5ca56dd9d6516dca1a228380e5/68747470733a2f2f7374796c6563692e696f2f7265706f732f33383734323934312f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/38742941)[![Build Status](https://camo.githubusercontent.com/bb46308f1f5a003c00b6765ff6b92e1763122d45e7565a0a37106b79ae721c3c/68747470733a2f2f7472617669732d63692e6f72672f64797765622f72656469732d63616368652e737667)](https://travis-ci.org/dyweb/redis-cache)[![codecov](https://camo.githubusercontent.com/22624fe93ae18572e2e309481e04eab48f182b32410fbee674c0dc0735a30c5d/68747470733a2f2f636f6465636f762e696f2f67682f64797765622f72656469732d63616368652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dyweb/redis-cache)[![Latest Stable Version](https://camo.githubusercontent.com/9b5eef5761102a5d463537187a029c878b0675b8377e9a220a391b9bc5400833/68747470733a2f2f706f7365722e707567782e6f72672f64797765622f72656469732d63616368652f762f737461626c65)](https://packagist.org/packages/dyweb/redis-cache)[![HHVM Status](https://camo.githubusercontent.com/676d37d6c132dd337f3c602a0fad8a86fea319e4dc3a26ec029cf2af47c5af37/687474703a2f2f6868766d2e683463632e64652f62616467652f64797765622f72656469732d63616368652e7376673f7374796c653d666c6174)](http://hhvm.h4cc.de/package/dyweb/redis-cache)

RedisCache is a simple cache library with key namespaces, Redis support, and PSR-6 implementation. To keep it simple, it only provides the simplest interface and brings with no dependencies (except PSR-6 interfaces). Different from other complex and redundant cache libraries, RedisCache is just tiny and powerful.

Features
--------

[](#features)

- Support both [Predis](https://github.com/nrk/predis) and [PhpRedis](https://github.com/phpredis/phpredis)
- Support PSR-6
- Store and manage keys in different namespaces
- Use with fluent interface
- Utilize lazy recording for better performance
- Utilize additional in-memory cache to reduce I/O
- No dependencies except PSR-6 interfaces

Requirements
------------

[](#requirements)

- PHP 5.3 or newer
- Redis 2.8 or newer

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

[](#installation)

RedisCache is [Composer](https://getcomposer.org/) and [PSR-4](http://www.php-fig.org/psr/psr-4/)ready. To install it, just run the following command:

```
composer require dyweb/redis-cache
```

Getting Started
---------------

[](#getting-started)

Please check the [examples](doc/getting-started.md) here.

Configuration
-------------

[](#configuration)

Please check the [configuration](doc/configuration.md) doc.

Development
-----------

[](#development)

### Contributing

[](#contributing)

Contributing to this project is highly appreciated through merge requests for new features or bug fixes, bug reporting or just suggestions. Please follow the PSR-2 coding standard when contributing, and ensure that all your contributions are not against our coding style and integrated tests.

### Testing

[](#testing)

Follow these commands to configure the necessary environment and run checks and tests:

```
composer install

# run tests
./run-check.sh
```

The latest version of [PHPUnit](https://phpunit.de/) is recommended for testing.

License
-------

[](#license)

The code for this project is distributed under the terms of the MIT License. (See [LICENSE](LICENSE))

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.3% 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 ~157 days

Total

3

Last Release

3544d ago

PHP version history (3 changes)v0.1.0PHP &gt;=5.3.2

v0.2.0PHP &gt;=5.3.3

v0.2.1PHP &gt;=5.3.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fa57c39e87a0dce3efaca530092d08e27382e19ffc9e102dcd2a5bb281708d2?d=identicon)[at15](/maintainers/at15)

---

Top Contributors

[![ComMouse](https://avatars.githubusercontent.com/u/9015818?v=4)](https://github.com/ComMouse "ComMouse (50 commits)")[![Bluemit](https://avatars.githubusercontent.com/u/11639422?v=4)](https://github.com/Bluemit "Bluemit (25 commits)")[![at15](https://avatars.githubusercontent.com/u/5621298?v=4)](https://github.com/at15 "at15 (4 commits)")

---

Tags

cachenamespacepsr-6redis

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k348.9M2.5k](/packages/symfony-cache)[symfony/cache-contracts

Generic abstractions related to caching

2.4k308.9M198](/packages/symfony-cache-contracts)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[league/flysystem-cached-adapter

An adapter decorator to enable meta-data caching.

35426.9M119](/packages/league-flysystem-cached-adapter)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)

PHPackages © 2026

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