File: //var/www/html/vendor/cache/predis-adapter/README.md
# Predis PSR-6 Cache pool
[](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://packagist.org/packages/cache/predis-adapter)
[](https://codecov.io/github/php-cache/predis-adapter?branch=master)
[](https://packagist.org/packages/cache/predis-adapter)
[](https://packagist.org/packages/cache/predis-adapter)
[](LICENSE)
This is a PSR-6 cache implementation using Predis. It is a part of the PHP Cache organisation. To read about
features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).
This implementation is using [Predis](https://github.com/nrk/predis). If you want an adapter with
[PhpRedis](https://github.com/phpredis/phpredis) you should look at our [Redis adapter](https://github.com/php-cache/redis-adapter).
### Install
```bash
composer require cache/predis-adapter
```
### Use
To create an instance of `PredisCachePool` you need to configure a `\Predis\Client` object.
```php
$client = new \Predis\Client('tcp:/127.0.0.1:6379');
$pool = new PredisCachePool($client);
```
### Contribute
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or
report any issues you find on the [issue tracker](http://issues.php-cache.com).