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

ActiveLibrary[Caching](/categories/caching)

wyrihaximus/react-cache-serialize
=================================

(un)serialize decorator for react/cache

1.1.0(3y ago)01.4k[2 PRs](https://github.com/WyriHaximus/reactphp-cache-serialize/pulls)MITPHPPHP ^8.1

Since Oct 26Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-cache-serialize)[ Packagist](https://packagist.org/packages/wyrihaximus/react-cache-serialize)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-react-cache-serialize/feed)WikiDiscussions master Synced today

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

(un)serialize decorator for react/cache
=======================================

[](#unserialize-decorator-for-reactcache)

[![Build Status](https://camo.githubusercontent.com/dad720e92423a49cd1333d8b8260488f489db453d91099abef671e6bd3e64f40/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f72656163747068702d63616368652d73657269616c697a652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/WyriHaximus/reactphp-cache-serialize)[![Latest Stable Version](https://camo.githubusercontent.com/841461e3cab11c87ca15971c5051d6c9d5a4fde70b5219e0856041cf878cfc35/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d73657269616c697a652f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-serialize)[![Total Downloads](https://camo.githubusercontent.com/d5888d03e0c64b716dd50fcd2146bccf798efe197ddedc304ac4f8f11ac2629f/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d73657269616c697a652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-serialize)[![Code Coverage](https://camo.githubusercontent.com/91846c32733b11b7494fca18d382aacc7a471a7be95a3856ff232ea72aca6b3c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d63616368652d73657269616c697a652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-cache-serialize/?branch=master)[![License](https://camo.githubusercontent.com/3bdd670c0fb77c7f62f3f1005eaae26e6cb10f0ad57e40f2c5858eb74e72837e/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d63616368652d73657269616c697a652f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/react-cache-serialize)

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-serialize

```

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:

```
