]> git.mxchange.org Git - friendica.git/blob - src/Core/Config/IConfigCache.php
Merge pull request #6577 from rabuzarus/20190129_-_jot_atachment_preview
[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         function set($cat, $key, $value);
27
28         /**
29          * Deletes a value from the config cache
30          *
31          * @param string $cat  Config category
32          * @param string $key  Config key
33          */
34         function delete($cat, $key);
35
36         function getAll();
37 }