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 |
create($location, $filename, $extension)
deprecated | Use {@see get_handler} instead |
---|
get_handler(string $location, string $filename, string $extension) : \SimplePie_Cache_Base
string
URL location (scheme is used to determine handler)
string
Unique identifier for cache object
string
'spi' or 'spc'
\SimplePie_Cache_Base
Type of object depends on scheme of `$location`parse_URL(string $url) : array
string
array
register(string $type, string $class)
string
DSN type to register for
string
Name of handler class. Must implement SimplePie_Cache_Base
__construct()
$handlers : array
array('mysql' => 'SimplePie_Cache_MySQL', 'memcache' => 'SimplePie_Cache_Memcache')
These receive 3 parameters to their constructor, as documented in \register()