* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class Cache
{
var $_items = array();
*
* @return Cache cache object
*/
-
static function instance()
{
if (is_null(self::$_inst)) {
*
* @return string full key
*/
-
static function key($extra)
{
$base_key = common_config('cache', 'base');
*
* @return string keyized string
*/
-
static function keyize($str)
{
$str = strtolower($str);
*
* @return string retrieved value or null if unfound
*/
-
function get($key)
{
$value = false;
*
* @return boolean success flag
*/
-
function set($key, $value, $flag=null, $expiry=null)
{
$success = false;
*
* @return boolean success flag
*/
-
function delete($key)
{
$success = false;
*
* @return boolean success flag
*/
-
function reconnect()
{
$success = false;