3 namespace Friendica\Core\Config;
6 * The interface for a user-specific config cache
8 interface IPConfigCache
11 * Retrieves a value from the user config cache
13 * @param int $uid User Id
14 * @param string $cat Config category
15 * @param string $key Config key
16 * @param mixed $default Default value if key isn't set
18 * @return string The value of the config entry
20 function getP($uid, $cat, $key = null, $default = null);
23 * Sets a value in the user config cache
25 * Accepts raw output from the pconfig table
27 * @param int $uid User Id
28 * @param string $cat Config category
29 * @param string $key Config key
30 * @param mixed $value Value to set
32 function setP($uid, $cat, $key, $value);
35 * Deletes a value from the user config cache
37 * @param int $uid User Id
38 * @param string $cat Config category
39 * @param string $key Config key
41 function deleteP($uid, $cat, $key);