Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions library/Zend/Session/SaveHandler/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function close()
*/
public function read($id)
{
return $this->getCacheStorge()->getItem($id);
return $this->getCacheStorage()->getItem($id);
}

/**
Expand All @@ -98,7 +98,7 @@ public function read($id)
*/
public function write($id, $data)
{
return $this->getCacheStorge()->setItem($id, $data);
return $this->getCacheStorage()->setItem($id, $data);
}

/**
Expand All @@ -109,7 +109,7 @@ public function write($id, $data)
*/
public function destroy($id)
{
return $this->getCacheStorge()->removeItem($id);
return $this->getCacheStorage()->removeItem($id);
}

/**
Expand All @@ -120,7 +120,7 @@ public function destroy($id)
*/
public function gc($maxlifetime)
{
$cache = $this->getCacheStorge();
$cache = $this->getCacheStorage();
if ($cache instanceof ClearExpiredCacheStorage) {
return $cache->clearExpired();
}
Expand All @@ -140,12 +140,20 @@ public function setCacheStorage(CacheStorage $cacheStorage)
}

/**
* Get Cache Storage Adapter Object
* Get cache storage
*
* @return CacheStorage
*/
public function getCacheStorge()
public function getCacheStorage()
{
return $this->cacheStorage;
}

/**
* @deprecated Misspelled method - use getCacheStorage() instead
*/
public function getCacheStorge()
{
return $this->getCacheStorage();
}
}