Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
License
WyriHaximus/reactphp-cache-psr-16-adapter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
To install viaComposer, use the command below, it will automatically detect the latest version and bind it with^.
composer require wyrihaximus/react-cache-psr-16-adapterTake anyreact/cache implementation, likewyrihaximus/react-cache-redis we'll be using in this example.Decorate it with aPSR16Adapter instance, and you can use them as a PSR-16 cache within fibers. Directly, or withother packages. InternallyPSR16Adapter usesawait on every method call to thereact/cache implementation to make it compatible.
$cache =newPSR16Adapter(newRedis($reditClient,'react:cache:your:key:prefix:'));React\Async\async(function () {$cache->set('key','value');// All methods use `await` internally to make any ReactPHP cache PSR-16 compatibleecho$cache->get('key');// echos: value})();
Please seeCONTRIBUTING for details.
Copyright 2022Cees-Jan Kiewiet
Permission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentationfiles (the "Software"), to deal in the Software withoutrestriction, including without limitation the rights to use,copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom theSoftware is furnished to do so, subject to the followingconditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIESOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHTHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OROTHER DEALINGS IN THE SOFTWARE.
About
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.


