mirror of
https://github.com/friendica/friendica
synced 2024-05-17 03:06:42 +02:00
35 lines
756 B
PHP
35 lines
756 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Core\Config;
|
||
|
|
||
|
interface IConfigCache
|
||
|
{
|
||
|
/**
|
||
|
* @param string $cat Config category
|
||
|
* @param string $key Config key
|
||
|
* @param mixed $default Default value if it isn't set
|
||
|
*
|
||
|
* @return mixed Returns the value of the Config entry
|
||
|
*/
|
||
|
function get($cat, $key = null, $default = null);
|
||
|
|
||
|
/**
|
||
|
* Sets a value in the config cache. Accepts raw output from the config table
|
||
|
*
|
||
|
* @param string $cat Config category
|
||
|
* @param string $key Config key
|
||
|
* @param mixed $value Value to set
|
||
|
*/
|
||
|
function set($cat, $key, $value);
|
||
|
|
||
|
/**
|
||
|
* Deletes a value from the config cache
|
||
|
*
|
||
|
* @param string $cat Config category
|
||
|
* @param string $key Config key
|
||
|
*/
|
||
|
function delete($cat, $key);
|
||
|
|
||
|
function getAll();
|
||
|
}
|