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
stringURL location (scheme is used to determine handler)
stringUnique identifier for cache object
string'spi' or 'spc'
\SimplePie_Cache_BaseType of object depends on scheme of `$location`parse_URL(string $url) : array
string
arrayregister(string $type, string $class)
stringDSN type to register for
stringName 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()