Deletes a dataset from cache.

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

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE
503096
public function delete($key, $namespace)
    {
        // Get internal key
        $key = $this->calculateUuid($key);

        // Assume the process will fail
        $result = true;

        // First of all - remove element from namespace ...
        $this->purgeRuntimeCache($key, $namespace);

        // Get file
        $filename = $this->getFilenameByKeyAndNamespace($key, $namespace);

        // Check if file exists
        if (file_exists($filename) === true) {
            $result = unlink($filename);

            // clear php's file cache
            $this->clear();
        }

        // return the result
        return $result;
    }
1100077
public function remove($key) {
       if (!isset($this->hashmap[$key])) { return false; }
       $nodeToRemove = $this->hashmap[$key];
       $this->detach($nodeToRemove);
       unset($this->hashmap[$nodeToRemove->getKey()]);
       return true;
     }
238134
static function deleteConfig($namespace) 
    {
        $result = CommonConfigModel::where('namespace', $namespace)->delete();
        $cacheName = 'config:'.$namespace;
        Cache::forget($cacheName);
        return $result;
    }
156278
public function delete($key)
    {
        $this->throwInvalidStringArgumentException($key);

        if($this->has($key)) {
            unset($this->cache[$key]);
            return true;
        }
        return false;
    }
354388
public function remove($key)
    {
        $this->initializeOnDemand();

        if ($this->has($key) && $this->cacheMapper->delete($key)) {
            unset($this->cache[$key]);
            return true;
        } else {
            return false;
        }
    }
860114
public function delete(string $key): bool
    {
        $file = $this->cacheFile($key);

        if (is_file($file)) {
            return unlink($file);
        }

        return false;
    }
311734
public function delete($key)
    {
        if ($this->redis->hDel($this->prefix, $key) > 0) {
            return true;
        }
        return false;
    }
1221405
public function delete($key)
    {
        $this->init();
        list($containerName, $key) = $this->tokenizeKey($key);

        try {
            $this->blobProxy->deleteBlob($containerName, $key);

            return true;
        } catch (ServiceException $e) {
            $this->failIfContainerNotFound($e, sprintf('delete key "%s"', $key), $containerName);

            return false;
        }
    }
1000012
public function remove($key)
	{
		$this->connect();

		$this->driver->delete($key);

		$rc = $this->driver->getResultCode();

		if ($rc !== \Memcached::RES_SUCCESS)
		{
			return false;
		}

		return true;
	}
37902
public function delete($key)
	{
		if(!$this->exists($key)) {
			return false;
		}

		unset($this->data[$key]);

		return true;
	}
1280844
public function delete($key){
		$mc=$this->getMemcache();
		if(empty($mc))return false;
		$this->queries_delete_count++;
		return $mc->delete($key);
		}
247842
public function delete(string $namespace, string $hash): void
    {
        $fileName = $this->getFileName($namespace, $hash);
        if (file_exists($fileName)) {
            unlink($fileName);
        }
    }
880129
public function delete(string $key): bool
    {
        /**
         * @var $handle \Memcache|\Memcached
         */
        $handle = $this->_handle;
        $ret = $handle->delete($key);
        Debug::setCache(static::$type, 'delete', $key, $ret);
        return $ret;
    }
194659
public function delete($key): bool
    {
        if ($this->enabled) {
            $realKey = $this->adjustKey($key);
            return $this->cacheDelete($realKey);
        }
        return false;
    }
19196
public function delete($key)
    {

        $deleted = false;

        $catalog = \array_keys($this->getKeys());
        foreach ($catalog as $k) {

            if ($k == $key) {
                unset($this->hash[$key]);
                if ($delete) {
                    $this->catalogKeyDelete($k);
                    $deleted = true;
                }
            }
        }

        return $deleted;
    }
1363203
public function delete($key) {
        $filename = $key.'.cache';
        $file = $this->file_path_for_key($key);
        if (@unlink($file)) {
            unset($this->keys[$filename]);
            return true;
        }

        return false;
    }
85662
public function delete($key)
    {
        if (empty($this->predis)) return false;

        $key = $this->processKey($key);

        return $this->predis->del($key);
    }