original_string: protected function _getSelectPairsCached($cacheId, $sql, $binds = array(), $tags = array(), $sort = null)
      {
          $cacheId = strtr(get_class($this) . '_p_' . $cacheId, '\\/', '__');
  
          $result = $this->cache->load($cacheId);
  
          if ($result) {
              return $result;
          }
  
          try {
              $result = $this->db->fetchPairs($sql, (array) $binds);
  
              if ($result && $sort) {
                  $this->_sortResult($result, $sort);
              }
  
              $this->cache->save($result, $cacheId, (array) $tags);
          } catch (\Zend_Db_Statement_Mysqli_Exception $e) {
              $result = array();
          }
  
          return $result;
      }
code: protected function _getSelectPairsCached($cacheId, $sql, $binds = array(), $tags = array(), $sort = null)
      {
          $cacheId = strtr(get_class($this) . '_p_' . $cacheId, '\\/', '__');
  
          $result = $this->cache->load($cacheId);
  
          if ($result) {
              return $result;
          }
  
          try {
              $result = $this->db->fetchPairs($sql, (array) $binds);
  
              if ($result && $sort) {
                  $this->_sortResult($result, $sort);
              }
  
              $this->cache->save($result, $cacheId, (array) $tags);
          } catch (\Zend_Db_Statement_Mysqli_Exception $e) {
              $result = array();
          }
  
          return $result;
      }
code_tokens: protected function _getSelectPairsCached ( $ cacheId , $ sql , $ binds = array ( ) , $ tags = array ( ) , $ sort = null ) { $ cacheId = strtr ( get_class ( $ this ) . '_p_' . $ cacheId , '\\/' , '__' ) ; $ result = $ this -> cache -> load ( $ cacheId ) ; if ( $ result ) { return $ result ; } try { $ result = $ this -> db -> fetchPairs ( $ sql , ( array ) $ binds ) ; if ( $ result && $ sort ) { $ this -> _sortResult ( $ result , $ sort ) ; } $ this -> cache -> save ( $ result , $ cacheId , ( array ) $ tags ) ; } catch ( \ Zend_Db_Statement_Mysqli_Exception $ e ) { $ result = array ( ) ; } return $ result ; }
docstring: Utility function for loading a query paired from cache
  
  @param string $cacheId The class is prepended to this id
  @param mixed $sql string or \Zend_Db_Select
  @param array $binds sql paramters
  @param mixed $tags atring or array of strings
  @param string Optional function to sort on, only known functions will do
  @return array
docstring_tokens: Utility function for loading a query paired from cache