Skip to content

Commit

Permalink
Merge branch 'cache_dba' of https://github.com/marc-mabe/zf2 into fea…
Browse files Browse the repository at this point in the history
…ture/cache-dba
  • Loading branch information
weierophinney committed Jul 6, 2012
2 parents 8119ce5 + 087182d commit 58963ff
Show file tree
Hide file tree
Showing 20 changed files with 1,363 additions and 30 deletions.
1 change: 0 additions & 1 deletion library/Zend/Cache/Storage/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function __construct($options = null)
* detach all registered plugins to free
* event handles of event manager
*
*
* @return void
*/
public function __destruct()
Expand Down
18 changes: 9 additions & 9 deletions library/Zend/Cache/Storage/Adapter/Apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Apc
extends AbstractAdapter
implements ClearByPrefixInterface, ClearByNamespaceInterface, FlushableInterface, IterableInterface,
AvailableSpaceCapableInterface, TotalSpaceCapableInterface
class Apc extends AbstractAdapter implements
ClearByPrefixInterface,
ClearByNamespaceInterface,
FlushableInterface,
IterableInterface,
AvailableSpaceCapableInterface,
TotalSpaceCapableInterface
{
/**
* Buffered total space in bytes
Expand Down Expand Up @@ -102,7 +105,7 @@ public function setOptions($options)
* Get options.
*
* @return ApcOptions
* @see setOptions()
* @see setOptions()
*/
public function getOptions()
{
Expand Down Expand Up @@ -308,10 +311,6 @@ protected function internalHasItems(array & $normalizedKeys)
* @param string $normalizedKey
* @return array|boolean Metadata on success, false on failure
* @throws Exception\ExceptionInterface
*
* @triggers getMetadata.pre(PreEvent)
* @triggers getMetadata.post(PostEvent)
* @triggers getMetadata.exception(ExceptionEvent)
*/
protected function internalGetMetadata(& $normalizedKey)
{
Expand Down Expand Up @@ -654,6 +653,7 @@ protected function internalGetCapabilities()
'atime', 'ctime', 'mtime', 'rtime',
'size', 'hits', 'ttl',
),
'minTtl' => 1,
'maxTtl' => 0,
'staticTtl' => true,
'ttlPrecision' => 1,
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Cache/Storage/Adapter/ApcIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct(Apc $storage, BaseApcIterator $baseIterator, $prefix
/**
* Get storage instance
*
* @return StorageInterface
* @return Apc
*/
public function getStorage()
{
Expand Down
Loading

0 comments on commit 58963ff

Please sign in to comment.