Пример #1
0
 /**
  * Check if the offset exists
  *
  * @param   int     $offset The offset
  * @return  bool
  */
 public function offsetExists($offset)
 {
     if (false === ($result = parent::offsetExists($offset))) {
         $result = apc_exists($this->getNamespace() . '-object_' . $offset);
     }
     return $result;
 }
Пример #2
0
 /**
  * Check if the offset exists
  *
  * @param   int     $offset The offset
  * @return  bool
  */
 public function offsetExists($offset)
 {
     if (false === ($result = parent::offsetExists($offset))) {
         $result = apc_exists($this->_namespace . '-' . $offset);
     }
     return $result;
 }