Skip to content

Releases: WyriHaximus/reactphp-cache-psr-16-adapter

1.1.0

02 Apr 13:46
f919e90
Compare
Choose a tag to compare

1.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 21
  • Total contributors: 3

Dependencies 📦,Enhancement ✨

Dependencies 📦

Enhancement ✨

1.0.0

12 Aug 16:56
0a8039e
Compare
Choose a tag to compare

Usage

Take any react/cache implementation, like
wyrihaximus/react-cache-redis we'll be using in this example.
Decorate it with a PSR16Adapter instance, and you can use them as a PSR-16 cache within fibers. Directly, or with
other packages. Internally PSR16Adapter uses await on every method call to the
react/cache implementation to make it compatible.

$cache = new PSR16Adapter(new Redis($reditClient, 'react:cache:your:key:prefix:'));

React\Async�sync(function () {
    $cache->set('key', 'value'); // All methods use `await` internally to make any ReactPHP cache PSR-16 compatible
    echo $cache->get('key'); // echos: value
})();

1.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 5
  • Total contributors: 2

Bug 🐞

Dependabot 🤖

Enhancement ✨,Feature 🏗

Enhancement ✨