Deletes a value from the cache.

@param string $key The key under which the value is stored.
@return void No value is returned.
322577
public function delete(string $key): void
    {
        $keyMD5 = md5($key);
        $this->dataRepository->delete($this->keyPrefix . substr($keyMD5, 0, 3) . '/' . substr($keyMD5, 3) . '.2');
    }
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;
    }
1114589
public function remove( $key )
    {
        if ( $this->has( $key ) )
        {
            unset( $this->items[ $key ] );
        }

        $this->updateSessionFile();
    }
864295
public function delete($key): bool
    {
        if ($this->has($key)) {
            $this->unset($key);
            return true;
        }

        return false;
    }
373567
public function delete($key) {
    $directory = $this->environment->getHooksDirectory();
    $data_file = "$directory/{$key}_processed.php";

    if (file_exists($data_file)) {
      unlink($data_file);
    }
  }
525945
public function delete($key) {
        if (!isset($this->store[$key])) {
            return false;
        }
        unset($this->store[$key]);
        if ($this->maxsize !== false) {
            $this->storecount--;
        }
        return true;
    }
1197876
public function delete($key) 
    {
        if(empty($key)) {
            return false;
        }
    
        $this->stats['execTimes'] ++;
        
        $path = $this->getCachePath($key);
        $this->waitUnlock($key);
        $this->lock($key);
        $this->obj->delete($path);        
        $this->unlock($key);
    }
758540
public function delete($key)
    {
        if (! $this->has($key)) return null;

        $value = $this->items[$key];

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

        return $value;
    }
874299
public static function remove($key) {
        try {
            self::getCache()->remove($key);
            self::release();
        } catch (\RuntimeException $e) {
            self::release();
            throw $e;
        } catch (\Error $e) {
            self::release();
            throw $e;
        }
    }
125898
public function delete($key)
    {
        $this->master->getFilesystem()->delete($key);

        foreach ($this->slaves as $slave) {
            $slave->getFilesystem()->delete($key);
        }
    }
76028
public function deleteValue($key)
    {
        $this->ssdbHandle->hdel($this->cache_keys_hash, $key);
        return $this->ssdbHandle->del($key);
    }
353570
public function delete($key)
    {
        if ($this->has($key)) {
            unset($this->collection[$key]);
            return true;
        }
        return false;
    }
1145327
public function forget($key)
    {
        $this->database->table($this->config['db_table'])->where('setting_key', $key)->delete();
        $this->cache->forget($key);
    }
259118
public function remove($key)
    {
        $key = strtr(strtolower($key), '_', '-');

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

        if ('cache-control' === $key) {
            $this->cacheControl = array();
        }
    }
306821
protected function deleteValue($key)
    {
        $this->db->createCommand()
            ->delete($this->cacheTable, ['id' => $key])
            ->execute();

        return true;
    }
1075771
protected function deleteValue($key)
    {
        $this->db->getCollection($this->cacheCollection)->remove(['id' => $key]);
        return true;
    }
289502
public function delete($key)
        {
            if (!$this->enabled) return;

            switch ($this->type) {
                case self::TYPE_APC:
                    apc_delete($key);
                    break;
                case self::TYPE_FILE:
                    $filename = $this->path . $key . '.cache';
                    unlink($filename);
            }
        }