Skip to content

Commit f572c03

Browse files
committed
Merge pull request #4 from Nyholm/typo
Added info about Predis and PHPredis
2 parents a4639a6 + 5162341 commit f572c03

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

.gush.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
repo_adapter: github
33
issue_tracker: github
44
repo_org: php-cache
5-
repo_name: redis-adapter
5+
repo_name: predis-adapter
66
issue_project_org: php-cache
7-
issue_project_name: redis-adapter
8-
meta-header: "This file is part of php-cache\\redis-adapter package.\n\n(c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]> \n\nThis source file is subject to the MIT license that is bundled\nwith this source code in the file LICENSE."
7+
issue_project_name: predis-adapter
8+
meta-header: "This file is part of php-cache\\predis-adapter package.\n\n(c) 2015-2015 Aaron Scherer <[email protected]>, Tobias Nyholm <[email protected]> \n\nThis source file is subject to the MIT license that is bundled\nwith this source code in the file LICENSE."
99
pr_type:
1010
- feature
1111
- bugfix

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
php:
3-
- "7.0"
4-
- "5.6"
5-
- "5.5"
3+
- 7.0
4+
- 5.6
5+
- 5.5
66

77
services:
88
- redis-server

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Redis PSR-6 adapter
2-
[![Build Status](https://travis-ci.org/php-cache/redis-adapter.svg?branch=master)](https://travis-ci.org/php-cache/redis-adapter) [![codecov.io](https://codecov.io/github/php-cache/redis-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/redis-adapter?branch=master)
1+
# Redis PSR-6 adapter using Preids
2+
[![Build Status](https://travis-ci.org/php-cache/predis-adapter.svg?branch=master)](https://travis-ci.org/php-cache/predis-adapter) [![codecov.io](https://codecov.io/github/php-cache/predis-adapter/coverage.svg?branch=master)](https://codecov.io/github/php-cache/predis-adapter?branch=master)
33

44
This is a implementation for the PSR-6 for Redis cache. This implementation supports tags.
5+
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).

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "cache/redis-adapter",
3-
"description": "A PSR-6 cache implementation using Redis. This implementation supports tags",
2+
"name": "cache/predis-adapter",
3+
"description": "A PSR-6 cache implementation using Redis (Predis). This implementation supports tags",
44
"type": "library",
55
"license": "MIT",
66
"minimum-stability": "stable",
@@ -9,9 +9,10 @@
99
"cache",
1010
"psr-6",
1111
"redis",
12+
"predis",
1213
"tag"
1314
],
14-
"homepage": "https://github.com/php-cache/redis-adapter",
15+
"homepage": "https://github.com/php-cache/predis-adapter",
1516
"authors":
1617
[
1718
{
@@ -45,13 +46,13 @@
4546
"autoload":
4647
{
4748
"psr-4": {
48-
"Cache\\Adapter\\Redis\\": "src/"
49+
"Cache\\Adapter\\Predis\\": "src/"
4950
}
5051
},
5152
"autoload-dev":
5253
{
5354
"psr-4": {
54-
"Cache\\Adapter\\Redis\\Tests\\": "tests/"
55+
"Cache\\Adapter\\Predis\\Tests\\": "tests/"
5556
}
5657
}
5758
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\Redis;
12+
namespace Cache\Adapter\Predis;
1313

1414
use Cache\Adapter\Common\AbstractCachePool;
1515
use Predis\Client;
@@ -19,7 +19,7 @@
1919
* @author Aaron Scherer <[email protected]>
2020
* @author Tobias Nyholm <[email protected]>
2121
*/
22-
class RedisCachePool extends AbstractCachePool
22+
class PredisCachePool extends AbstractCachePool
2323
{
2424
/**
2525
* @type Client

tests/IntegrationPoolTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\Redis\Tests;
12+
namespace Cache\Adapter\Predis\Tests;
1313

14-
use Cache\Adapter\Redis\RedisCachePool;
14+
use Cache\Adapter\Predis\PredisCachePool;
1515
use Cache\IntegrationTests\CachePoolTest as BaseTest;
1616
use Predis\Client;
1717

@@ -21,7 +21,7 @@ class IntegrationPoolTest extends BaseTest
2121

2222
public function createCachePool()
2323
{
24-
return new RedisCachePool($this->getClient());
24+
return new PredisCachePool($this->getClient());
2525
}
2626

2727
private function getClient()

tests/IntegrationTagTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* with this source code in the file LICENSE.
1010
*/
1111

12-
namespace Cache\Adapter\Redis\Tests;
12+
namespace Cache\Adapter\Predis\Tests;
1313

14-
use Cache\Adapter\Redis\RedisCachePool;
14+
use Cache\Adapter\Predis\PredisCachePool;
1515
use Cache\IntegrationTests\TaggableCachePoolTest;
1616
use Predis\Client;
1717

@@ -21,7 +21,7 @@ class IntegrationTagTest extends TaggableCachePoolTest
2121

2222
public function createCachePool()
2323
{
24-
return new RedisCachePool($this->getClient());
24+
return new PredisCachePool($this->getClient());
2525
}
2626

2727
private function getClient()

0 commit comments

Comments
 (0)