public function exists($key, $namespace)
    {
        // Get internal used key
        $key = $this->calculateUuid($key . $namespace);

        // Assume it does not exist
        $result = false;

        if ($this->getFromRuntimeCache($key, $namespace) !== false) {
            $result = true;

        } else {
            $value = $this->connection->get($key);

            if ($value !== false) {
                $this->addToRuntimeCache($key, $value, $namespace);
                $result = true;
            }
        }

        return $result;
    }
public function exists($key, $namespace)
    {
        // Get internal used key
        $key = $this->calculateUuid($key . $namespace);

        // Assume it does not exist
        $result = false;

        if ($this->getFromRuntimeCache($key, $namespace) !== false) {
            $result = true;

        } else {
            $value = $this->connection->get($key);

            if ($value !== false) {
                $this->addToRuntimeCache($key, $value, $namespace);
                $result = true;
            }
        }

        return $result;
    }
public function exists ( $ key , $ namespace ) { // Get internal used key $ key = $ this -> calculateUuid ( $ key . $ namespace ) ; // Assume it does not exist $ result = false ; if ( $ this -> getFromRuntimeCache ( $ key , $ namespace ) !== false ) { $ result = true ; } else { $ value = $ this -> connection -> get ( $ key ) ; if ( $ value !== false ) { $ this -> addToRuntimeCache ( $ key , $ value , $ namespace ) ; $ result = true ; } } return $ result ; }
Checks if a dataset exists

This method is intend to check if a dataset exists.

@param string $key       The key of the dataset
@param string $namespace The namespace of the dataset

@author Benjamin Carl <opensource@clickalicious.de>
@return bool TRUE if dataset exist, otherwise FALSE
@access public
@throws Doozr_Cache_Service_Exception
Checks if a dataset exists