Add missing Cache::delete method
This commit is contained in:
parent
83c4c86251
commit
30d8c73660
1 changed files with 18 additions and 0 deletions
|
@ -99,6 +99,24 @@ class Cache extends \Friendica\BaseObject
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delete a value from the cache
|
||||||
|
*
|
||||||
|
* @param string $key The key to the cached data
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function delete($key)
|
||||||
|
{
|
||||||
|
$time = microtime(true);
|
||||||
|
|
||||||
|
$return = self::getDriver()->delete($key);
|
||||||
|
|
||||||
|
self::getApp()->save_timestamp($time, 'cache_write');
|
||||||
|
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Remove outdated data from the cache
|
* @brief Remove outdated data from the cache
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue