web/lib/Zend/Cache/Backend/Apc.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Cache
    16  * @package    Zend_Cache
    17  * @subpackage Zend_Cache_Backend
    17  * @subpackage Zend_Cache_Backend
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Apc.php 24593 2012-01-05 20:35:02Z matthew $
    20  * @version    $Id$
    21  */
    21  */
    22 
    22 
    23 
    23 
    24 /**
    24 /**
    25  * @see Zend_Cache_Backend_Interface
    25  * @see Zend_Cache_Backend_Interface
    33 
    33 
    34 
    34 
    35 /**
    35 /**
    36  * @package    Zend_Cache
    36  * @package    Zend_Cache
    37  * @subpackage Zend_Cache_Backend
    37  * @subpackage Zend_Cache_Backend
    38  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    38  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    39  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    39  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    40  */
    40  */
    41 class Zend_Cache_Backend_Apc extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
    41 class Zend_Cache_Backend_Apc extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
    42 {
    42 {
    43     /**
    43     /**
   254      *
   254      *
   255      * @return array array of stored cache ids (string)
   255      * @return array array of stored cache ids (string)
   256      */
   256      */
   257     public function getIds()
   257     public function getIds()
   258     {
   258     {
   259         $res = array();
   259         $ids      = array();
   260         $array = apc_cache_info('user', false);
   260         $iterator = new APCIterator('user', null, APC_ITER_KEY);
   261         $records = $array['cache_list'];
   261         foreach ($iterator as $item) {
   262         foreach ($records as $record) {
   262             $ids[] = $item['key'];
   263             $res[] = $record['info'];
   263         }
   264         }
   264 
   265         return $res;
   265         return $ids;
   266     }
   266     }
   267 
   267 
   268     /**
   268     /**
   269      * Return an array of metadatas for the given cache id
   269      * Return an array of metadatas for the given cache id
   270      *
   270      *