Solar_Cache_Adapter::delete()

public void Solar_Cache_Adapter::delete ( string $key )

Deletes a cache entry.

Parameters

  • (string) $key: The entry ID.

Returns

  • (void)

Description

Deletes a cache entry.

<?php
// create a request object
$request = Solar_Registry::get('request');

// create an entry ID named for the current URI
$id = $request->server('REQUEST_URI');

// create a cache object
$cache = Solar::factory('Solar_Cache');

// delete any cache entry with that ID
$cache->delete($id);


Local