public function get($sql)
    {
        $this->expireCache();
        $hash = self::_sqlHash($sql);

        // if doesn't exists, return null
        if (!array_key_exists($hash, $this->_prepared_cache)) {
            return null;
        }
        return $this->_prepared_cache[$hash]["statement"];
    }
public function get($sql)
    {
        $this->expireCache();
        $hash = self::_sqlHash($sql);

        // if doesn't exists, return null
        if (!array_key_exists($hash, $this->_prepared_cache)) {
            return null;
        }
        return $this->_prepared_cache[$hash]["statement"];
    }
public function get ( $ sql ) { $ this -> expireCache ( ) ; $ hash = self :: _sqlHash ( $ sql ) ; // if doesn't exists, return null if ( ! array_key_exists ( $ hash , $ this -> _prepared_cache ) ) { return null ; } return $ this -> _prepared_cache [ $ hash ] [ "statement" ] ; }
Get a prepared statement from cache

@param string $sql query

@return object or null if not on cache
Get a prepared statement from cache