return new SimplePie_Cache_File($location,
$filename,
$extension);
} /**
* Create a new SimplePie_Cache object
*
* @deprecated Use {@see get_handler} instead
*/
public function create($location,
$filename,
$extension) { trigger_error('Cache::create() has been replaced with Cache::get_handler(). Switch to the registry system to use this.', E_USER_DEPRECATED
);
return self::
get_handler($location,
$filename,
$extension);
} /**
* Register a handler
*
* @param string $type DSN type to register for
* @param string $class Name of handler class. Must implement SimplePie_Cache_Base
*/
public static function register($type,
$class) { self::
$handlers[$type] =
$class;
}