WordPress at Your Fingertips
function is not described

SimplePie_Cache::get_handler() public WP 1.0

Create a new SimplePie_Cache object

{} It's a method of the class: SimplePie_Cache{}

No Hooks.

Return

SimplePie_Cache_Base. Type of object depends on scheme of $location

Usage

$result = SimplePie_Cache::get_handler( $location, $filename, $extension );
$location(string) (required)
URL location (scheme is used to determine handler)
$filename(string) (required)
Unique identifier for cache object
$extension(string) (required)
'spi' or 'spc'

Code of SimplePie_Cache::get_handler() WP 5.8.2

public static function get_handler($location, $filename, $extension)
{
	$type = explode(':', $location, 2);
	$type = $type[0];
	if (!empty(self::$handlers[$type]))
	{
		$class = self::$handlers[$type];
		return new $class($location, $filename, $extension);
	}

	return new SimplePie_Cache_File($location, $filename, $extension);
}