Skip to content

Commit a4639a6

Browse files
committed
Merge pull request #3 from Nyholm/typo
Fixing the broken build
2 parents 27d832b + 5c2787f commit a4639a6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"redis",
1212
"tag"
1313
],
14-
"homepage": "https://github.com/php-cache/doctrine-adapter",
14+
"homepage": "https://github.com/php-cache/redis-adapter",
1515
"authors":
1616
[
1717
{
@@ -29,7 +29,7 @@
2929
{
3030
"php": "^5.5|^7.0",
3131
"psr/cache": "1.0.0",
32-
"cache/adapter-common": "^0.1",
32+
"cache/adapter-common": "^0.1.2",
3333
"cache/taggable-cache": "^0.2",
3434
"predis/predis": "^1.0"
3535
},

src/RedisCachePool.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public function hasItem($key, array $tags = [])
4242
$this->validateKey($key);
4343
$taggedKey = $this->generateCacheKey($key, $tags);
4444

45+
if (isset($this->deferred[$key])) {
46+
return true;
47+
}
48+
4549
return $this->cache->exists($taggedKey);
4650
}
4751

0 commit comments

Comments
 (0)