protected function getData($key)
    {
        $query  = $this->db->query("SELECT value FROM cache WHERE key='" . $this->key($key) . "' AND expire >= datetime('now')");
        return $query->fetch();
    }
protected function getData($key)
    {
        $query  = $this->db->query("SELECT value FROM cache WHERE key='" . $this->key($key) . "' AND expire >= datetime('now')");
        return $query->fetch();
    }
protected function getData ( $ key ) { $ query = $ this -> db -> query ( "SELECT value FROM cache WHERE key='" . $ this -> key ( $ key ) . "' AND expire >= datetime('now')" ) ; return $ query -> fetch ( ) ; }
Retrieves the data from the database

@param string $key The key to retrieve

@return array An array containing 'key', 'value', and 'expire' keys
Retrieves the data from the database