|
1 | | -# Redis PSR-6 adapter using Predis |
2 | | -[](https://travis-ci.org/php-cache/predis-adapter) [](https://codecov.io/github/php-cache/predis-adapter?branch=master) |
| 1 | +# Predis PSR-6 Cache pool |
| 2 | +[](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) |
| 3 | +[](https://packagist.org/packages/cache/predis-adapter) |
| 4 | +[](https://packagist.org/packages/cache/predis-adapter) |
| 5 | +[](https://packagist.org/packages/cache/predis-adapter) |
| 6 | +[](LICENSE) |
3 | 7 |
|
4 | | -This is a implementation for the PSR-6 for Redis cache. This implementation supports tags. |
| 8 | +This is a PSR-6 cache implementation using Predis. It is a part of the PHP Cache organisation. To read about |
| 9 | +features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com). |
5 | 10 |
|
6 | | -This implementation is using [Predis](https://github.com/nrk/predis). If you want an adapter with |
7 | | - [PHPRedis](https://github.com/phpredis/phpredis) you should look at our [Redis adapter](https://github.com/php-cache/redis-adapter). |
| 11 | +This implementation is using [Predis](https://github.com/nrk/predis). If you want an adapter with |
| 12 | +[PhpRedis](https://github.com/phpredis/phpredis) you should look at our [Redis adapter](https://github.com/php-cache/redis-adapter). |
| 13 | + |
| 14 | +### Install |
| 15 | + |
| 16 | +```bash |
| 17 | +composer require cache/predis-adapter |
| 18 | +``` |
| 19 | + |
| 20 | +### Use |
| 21 | + |
| 22 | +To create an instance of `PredisCachePool` you need to configure a `\Predis\Client` object. |
| 23 | + |
| 24 | +```php |
| 25 | +$client = new \Predis\Client('tcp:/127.0.0.1:6379'); |
| 26 | +$pool = new PredisCachePool($client); |
| 27 | +``` |
| 28 | + |
| 29 | +### Contribute |
| 30 | + |
| 31 | +Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or |
| 32 | +report any issues you find on the [issue tracker](http://issues.php-cache.com). |
0 commit comments