Skip to content

Commit

Permalink
Merge pull request tedious#34 from Lumbendil/master
Browse files Browse the repository at this point in the history
Fixed the doctrine adapter.
  • Loading branch information
tedivm committed Jul 31, 2013
2 parents 725c810 + bd8dd78 commit 8207460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Adapters/DoctrineAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DoctrineAdapter implements DoctrineCacheInterface
/**
* The cache service being wrapped.
*
* @var Doctrine\Common\Cache\Cache
* @var \Stash\Pool
*/
protected $cacheService;

Expand Down Expand Up @@ -64,7 +64,7 @@ public function fetch($id)
$cache = $this->caches[$id];
unset($this->caches[$id]);
} else {
$cache = $this->cacheService->get($id);
$cache = $this->cacheService->getItem($id);
}

$value = $cache->get();
Expand All @@ -82,7 +82,7 @@ public function contains($id)
{
$id = $this->normalizeId($id);

$this->caches[$id] = $this->cacheService->get($id);
$this->caches[$id] = $this->cacheService->getItem($id);

return $this->caches[$id]->isMiss();
}
Expand All @@ -94,7 +94,7 @@ public function save($id, $data, $lifeTime = 0)
{
$id = $this->normalizeId($id);

$cache = $this->cacheService->get($id);
$cache = $this->cacheService->getItem($id);

return $cache->set($data, $lifeTime);
}
Expand Down

0 comments on commit 8207460

Please sign in to comment.