]> git.mxchange.org Git - friendica.git/blob - src/Core/Config/IConfigCache.php
898e3c0f863b81ed631360be1a28b4901671a516
[friendica.git] / src / Core / Config / IConfigCache.php
1 <?php
2
3 namespace Friendica\Core\Config;
4
5 /**
6  * The interface for a system-wide ConfigCache
7  */
8 interface IConfigCache
9 {
10         /**
11          * @param string $cat     Config category
12          * @param string $key       Config key
13          * @param mixed  $default Default value if it isn't set
14          *
15          * @return mixed Returns the value of the Config entry
16          */
17         function get($cat, $key = null, $default = null);
18
19         /**
20          * Sets a value in the config cache. Accepts raw output from the config table
21          *
22          * @param string $cat   Config category
23          * @param string $key   Config key
24          * @param mixed  $value Value to set
25          *
26          * @return bool True, if the value is set
27          */
28         function set($cat, $key, $value);
29
30         /**
31          * Deletes a value from the config cache
32          *
33          * @param string $cat  Config category
34          * @param string $key  Config key
35          */
36         function delete($cat, $key);
37
38         function getAll();
39 }