public static function getInstance() { if (null === self::$loc) { self::$loc = new self(); } return self::$loc; }
/** * @return ZendCacheDriver */ protected static function getCache() { if (is_null(self::$cache)) { self::$cache = new ZendCacheDriver('cache/expensive'); } return self::$cache; }