Used to create cache objects

This class can be overloaded with \SimplePie::set_cache_class(), although the preferred way is to create your own handler via \register()

package SimplePie
subpackage Caching

 Methods

Create a new SimplePie_Cache object

create($location, $filename, $extension) 
deprecated Use {@see get_handler} instead

Parameters

$location

$filename

$extension

Create a new SimplePie_Cache object

get_handler(string $location, string $filename, string $extension) : \SimplePie_Cache_Base
Static

Parameters

$location

string

URL location (scheme is used to determine handler)

$filename

string

Unique identifier for cache object

$extension

string

'spi' or 'spc'

Returns

\SimplePie_Cache_BaseType of object depends on scheme of `$location`

Parse a URL into an array

parse_URL(string $url) : array
Static

Parameters

$url

string

Returns

array

Register a handler

register(string $type, string $class) 
Static

Parameters

$type

string

DSN type to register for

$class

string

Name of handler class. Must implement SimplePie_Cache_Base

Don't call the constructor. Please.

__construct() 

 Properties

 

Cache handler classes

$handlers : array

Default

array('mysql' => 'SimplePie_Cache_MySQL', 'memcache' => 'SimplePie_Cache_Memcache')
Static

These receive 3 parameters to their constructor, as documented in \register()