mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
Coding Standards
A few updates for coding standards
This commit is contained in:
parent
5888cce08e
commit
d9e9cbe753
12 changed files with 357 additions and 249 deletions
|
@ -134,6 +134,8 @@ class Cache
|
|||
* @param string $key The key to the cached data
|
||||
* @param mixed $value The value that is about to be stored
|
||||
* @param integer $duration The cache lifespan
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function set($key, $value, $duration = CACHE_MONTH)
|
||||
{
|
||||
|
@ -159,6 +161,8 @@ class Cache
|
|||
* @brief Remove outdated data from the cache
|
||||
*
|
||||
* @param integer $max_level The maximum cache level that is to be cleared
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function clear($max_level = CACHE_MONTH)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue