PHPackages                             wyrihaximus/react-cache-msgpack - 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. wyrihaximus/react-cache-msgpack

ActiveLibrary[Caching](/categories/caching)

wyrihaximus/react-cache-msgpack
===============================

MessagePack encode/decode decorator for react/cache

2.0.1(6y ago)21.6k[3 PRs](https://github.com/WyriHaximus/reactphp-cache-msgpack/pulls)MITPHPPHP ^7.2CI failing

Since Sep 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-cache-msgpack)[ Packagist](https://packagist.org/packages/wyrihaximus/react-cache-msgpack)[ RSS](/packages/wyrihaximus-react-cache-msgpack/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

MessagePack encode/decode decorator for react/cache
===================================================

[](#messagepack-encodedecode-decorator-for-reactcache)

[![Build Status](https://camo.githubusercontent.com/934e1ab1bc15c53b807b7ef74d84313097dff25b62fdadd0eb37a83ff0c7d269/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f72656163747068702d63616368652d6d73677061636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/WyriHaximus/reactphp-cache-msgpack)[![Latest Stable Version](https://camo.githubusercontent.com/ab35d9874bb96d8082234d9e9839b92aeaf4c56f717b3397a6b70fd86d7456dc/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d6d73677061636b2f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-msgpack)[![Total Downloads](https://camo.githubusercontent.com/e91172823458ebcb3417dd45cc02340985be2bb9bb39aae54422f5349982b70f/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d6d73677061636b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-msgpack)[![Code Coverage](https://camo.githubusercontent.com/74ff220c84bf7bca94638e38dbc2de9f333b8d0581f4744cc58bf044eb76feda/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d63616368652d6d73677061636b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-cache-msgpack/?branch=master)[![License](https://camo.githubusercontent.com/8dac9a0944814c63efb1fc54fc40547d43369aa3b6cc084e8ae7cde7cbf97104/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d6d73677061636b2f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-msgpack)[![PHP 7 ready](https://camo.githubusercontent.com/7eeae902fc5f5513881174a54c68ed8e7040ee7982f3d8835cfe29035af999a0/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f72656163747068702d63616368652d6d73677061636b2f62616467652e737667)](https://travis-ci.com/WyriHaximus/reactphp-cache-msgpack)

Installation
============

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/react-cache-msgpack

```

Usage
=====

[](#usage)

Wrap any class implementing `React\Cache\CacheInterface` and it will encode any value you give it to JSON when saving, and decode it back to an array or scalar when fetching:

```
