3 namespace Friendica\Core\Config\Cache;
6 * The interface for a system-wide ConfigCache
11 * Tries to load the specified configuration array into the config array.
12 * Doesn't overwrite previously set values by default to prevent default config files to supersede DB Config.
14 * @param array $config
15 * @param bool $overwrite Force value overwrite if the config key already exists
17 function load(array $config, $overwrite = false);
20 * Gets a value from the config cache.
22 * @param string $cat Config category
23 * @param string $key Config key
25 * @return null|mixed Returns the value of the Config entry or null if not set
27 function get($cat, $key = null);
30 * Sets a value in the config cache. Accepts raw output from the config table
32 * @param string $cat Config category
33 * @param string $key Config key
34 * @param mixed $value Value to set
36 * @return bool True, if the value is set
38 function set($cat, $key, $value);
41 * Deletes a value from the config cache.
43 * @param string $cat Config category
44 * @param string $key Config key
46 * @return bool true, if deleted
48 function delete($cat, $key);
51 * Returns the whole configuration cache