/**
* @param string $key
- * @param int $time
* @return bool
*/
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
apc_delete( $key );
return true;
$this->debugMode = $bool;
}
- /* *** THE GUTS OF THE OPERATION *** */
- /* Override these with functional things in subclasses */
-
/**
* Get an item with the given key. Returns false if it does not exist.
* @param string $key
/**
* Delete an item.
* @param string $key
- * @param int $time Amount of time to delay the operation (mostly memcached-specific)
* @return bool True if the item was deleted or not found, false on failure
*/
- abstract public function delete( $key, $time = 0 );
+ abstract public function delete( $key );
/**
* Merge changes into the existing cache value (possibly creating a new one).
/**
* @param string $key
- * @param int $time
* @return bool
*/
- function delete( $key, $time = 0 ) {
+ function delete( $key ) {
return true;
}
/**
* @param string $key
- * @param int $time
* @return bool
*/
- function delete( $key, $time = 0 ) {
+ function delete( $key ) {
if ( !isset( $this->bag[$key] ) ) {
return false;
}
/**
* @param string $key
- * @param int $time
* @return bool
*/
- public function delete( $key, $time = 0 ) {
- return $this->client->delete( $this->encodeKey( $key ), $time );
+ public function delete( $key ) {
+ return $this->client->delete( $this->encodeKey( $key ) );
}
/**
/**
* @param string $key
- * @param int $time
* @return bool
*/
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
$this->debugLog( "delete($key)" );
- $result = parent::delete( $key, $time );
+ $result = parent::delete( $key );
if ( $result === false && $this->client->getResultCode() === Memcached::RES_NOTFOUND ) {
// "Not found" is counted as success in our interface
return true;
/**
* @param string $key
- * @param int $time
* @return bool
*/
- public function delete( $key, $time = 0 ) {
- return $this->doWrite( 'delete', $key, $time );
+ public function delete( $key ) {
+ return $this->doWrite( 'delete', $key );
}
/**
return $result;
}
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
list( $server, $conn ) = $this->getConnection( $key );
if ( !$conn ) {
/**
* @param string $key
- * @param int $time
* @return bool
*/
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
list( $serverIndex, $tableName ) = $this->getTableByKey( $key );
try {
$db = $this->getDB( $serverIndex );
* Remove a value from the WinCache object cache
*
* @param string $key Cache key
- * @param int $time Not used in this implementation
* @return bool
*/
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
wincache_ucache_delete( $key );
return true;
* Remove a value from the XCache object cache
*
* @param string $key Cache key
- * @param int $time Not used in this implementation
* @return bool
*/
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
xcache_unset( $key );
return true;
}