Change-Id: I8f90f480ec8bc70605c85c39f73f29df21d1927d
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
apc_delete( $key );
return true;
apc_delete( $key );
return true;
$this->debugMode = $bool;
}
$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
/**
* Get an item with the given key. Returns false if it does not exist.
* @param string $key
/**
* Delete an item.
* @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
*/
* @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).
/**
* Merge changes into the existing cache value (possibly creating a new one).
- function delete( $key, $time = 0 ) {
+ function delete( $key ) {
- function delete( $key, $time = 0 ) {
+ function delete( $key ) {
if ( !isset( $this->bag[$key] ) ) {
return false;
}
if ( !isset( $this->bag[$key] ) ) {
return false;
}
- 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 ) );
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
$this->debugLog( "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;
if ( $result === false && $this->client->getResultCode() === Memcached::RES_NOTFOUND ) {
// "Not found" is counted as success in our interface
return true;
- public function delete( $key, $time = 0 ) {
- return $this->doWrite( 'delete', $key, $time );
+ public function delete( $key ) {
+ return $this->doWrite( 'delete', $key );
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
list( $server, $conn ) = $this->getConnection( $key );
if ( !$conn ) {
list( $server, $conn ) = $this->getConnection( $key );
if ( !$conn ) {
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
list( $serverIndex, $tableName ) = $this->getTableByKey( $key );
try {
$db = $this->getDB( $serverIndex );
list( $serverIndex, $tableName ) = $this->getTableByKey( $key );
try {
$db = $this->getDB( $serverIndex );
* Remove a value from the WinCache object cache
*
* @param string $key Cache key
* Remove a value from the WinCache object cache
*
* @param string $key Cache key
- * @param int $time Not used in this implementation
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
wincache_ucache_delete( $key );
return true;
wincache_ucache_delete( $key );
return true;
* Remove a value from the XCache object cache
*
* @param string $key Cache key
* Remove a value from the XCache object cache
*
* @param string $key Cache key
- * @param int $time Not used in this implementation
- public function delete( $key, $time = 0 ) {
+ public function delete( $key ) {
xcache_unset( $key );
return true;
}
xcache_unset( $key );
return true;
}