original_string: protected function _loadSlice($mailbox, $slice)
      {
          $cache_id = $this->_getCid($mailbox, $slice);
  
          if (!empty($this->_loaded[$cache_id])) {
              return;
          }
  
          if (($data = $this->_cache->get($cache_id, 0)) !== false) {
              try {
                  $data = @unserialize($data);
              } catch (Exception $e) {}
          }
  
          if (($data !== false) && is_array($data)) {
              $this->_data[$mailbox] += $data;
              $this->_loaded[$cache_id] = true;
          } else {
              $ptr = &$this->_slicemap[$mailbox];
  
              // Slice data is corrupt; remove from slicemap.
              foreach (array_keys($ptr['s'], $slice) as $val) {
                  unset($ptr['s'][$val]);
              }
  
              if ($slice == $ptr['i']) {
                  $ptr['c'] = 0;
              }
          }
      }
code: protected function _loadSlice($mailbox, $slice)
      {
          $cache_id = $this->_getCid($mailbox, $slice);
  
          if (!empty($this->_loaded[$cache_id])) {
              return;
          }
  
          if (($data = $this->_cache->get($cache_id, 0)) !== false) {
              try {
                  $data = @unserialize($data);
              } catch (Exception $e) {}
          }
  
          if (($data !== false) && is_array($data)) {
              $this->_data[$mailbox] += $data;
              $this->_loaded[$cache_id] = true;
          } else {
              $ptr = &$this->_slicemap[$mailbox];
  
              // Slice data is corrupt; remove from slicemap.
              foreach (array_keys($ptr['s'], $slice) as $val) {
                  unset($ptr['s'][$val]);
              }
  
              if ($slice == $ptr['i']) {
                  $ptr['c'] = 0;
              }
          }
      }
code_tokens: protected function _loadSlice ( $ mailbox , $ slice ) { $ cache_id = $ this -> _getCid ( $ mailbox , $ slice ) ; if ( ! empty ( $ this -> _loaded [ $ cache_id ] ) ) { return ; } if ( ( $ data = $ this -> _cache -> get ( $ cache_id , 0 ) ) !== false ) { try { $ data = @ unserialize ( $ data ) ; } catch ( Exception $ e ) { } } if ( ( $ data !== false ) && is_array ( $ data ) ) { $ this -> _data [ $ mailbox ] += $ data ; $ this -> _loaded [ $ cache_id ] = true ; } else { $ ptr = & $ this -> _slicemap [ $ mailbox ] ; // Slice data is corrupt; remove from slicemap. foreach ( array_keys ( $ ptr [ 's' ] , $ slice ) as $ val ) { unset ( $ ptr [ 's' ] [ $ val ] ) ; } if ( $ slice == $ ptr [ 'i' ] ) { $ ptr [ 'c' ] = 0 ; } } }
docstring: Load UIDs from a cache slice.
  
  @param string $mailbox  The mailbox to load.
  @param integer $slice   The slice to load.
docstring_tokens: Load UIDs from a cache slice .