PHPackages                             kba-team/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. kba-team/cache

AbandonedArchivedLibrary[Caching](/categories/caching)

kba-team/cache
==============

Simple cache implementing PSR-16 connecting to Redis using PhpRedis.

1.1.1(6y ago)2163.1k↓16.9%1[1 PRs](https://github.com/the-kbA-team/cache/pulls)MITPHPPHP ^7.0CI failing

Since Feb 28Pushed 3y ago2 watchersCompare

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

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

kbA-Team cache
==============

[](#kba-team-cache)

[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/d6d9e19ba66bc8882aeb432ed3b33c56f81773c927108bee943fb69d75335b0e/68747470733a2f2f7472617669732d63692e6f72672f7468652d6b62412d7465616d2f63616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/the-kbA-team/cache)[![Maintainability](https://camo.githubusercontent.com/bd587739472bab34c552774be92f70d4b25db5f5cb7c42ecbab5450b6bd2be5d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39366137313962303834636665383939653634332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/the-kbA-team/cache/maintainability)[![Test Coverage](https://camo.githubusercontent.com/5f57194803ccee0d55af72df91d74b86cd8b0a2e10efe032dbca5c480b29505b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39366137313962303834636665383939653634332f746573745f636f766572616765)](https://codeclimate.com/github/the-kbA-team/cache/test_coverage)

Simple cache implementing [PSR-16: Common Interface for Caching Libraries](https://www.php-fig.org/psr/psr-16/) connecting to [Redis](https://redis.io/) using [PhpRedis](https://github.com/phpredis/phpredis).

Why???
------

[](#why)

We are aware of the [PHP-Cache Project](http://www.php-cache.com/en/latest/) with all sorts of adapters- even for [PhpRedis](https://github.com/phpredis/phpredis) **and** [Predis](https://github.com/nrk/predis).

We were in need of a *simple cache solution just for Redis* without all the bells and whistles of PSR-6 and without all the abstraction layers necessary to implement multiple storage backends.

Usage
-----

[](#usage)

### Add to your project

[](#add-to-your-project)

```
composer require kba-team/cache "^1.1"
```

We use [Semver](https://semver.org/).

### Single redis server via TCP

[](#single-redis-server-via-tcp)

```
