Download the PHP package publishing-kit/cache without Composer
On this page you can find all versions of the php package publishing-kit/cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download publishing-kit/cache
More information about publishing-kit/cache
Files in publishing-kit/cache
Package cache
Short Description Cache factory and wrapper for the PublishingKit project
License MIT
Homepage https://github.com/publishing-kit/cache
Informations about the package cache
cache
PublishingKit/Cache is a wrapper around a PSR6-compatible caching library to make it more convenient to work with.
In addition, it also provides factory classes for creating instances of the following caches:
tedivm/stash
symfony/cache
doctrine/cache
, via the Doctrine bridge in PHP-Cache
However, the factory classes do not support every driver. If your driver of choice is not supported, feel free to submit a pull request for this.
In theory it should also be easy to add support for other PSR6-compatible caches. Again, if you want to see factory classes added for those caches, please submit a pull request.
Install
Via Composer
Usage
The wrapper can be instantiated by passing in any cache object that implements PSR6:
The factory classes accept an array describing the cache in question. Here we create a Stash instance using Redis:
And here we do the same for Symfony Cache:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Matthew Daly
- All Contributors
License
The MIT License (MIT). Please see License File for more information.