Used to create cache objects.
More...
Used to create cache objects.
This class can be overloaded with {
- See also
- SimplePie\set_cache_class()}, although the preferred way is to create your own handler via {
-
register()}
@subpackage Caching
- Deprecated
- since SimplePie 1.8.0, use "SimplePie::SimplePie::set_cache()" instead
◆ create()
Cache::create |
( |
| $location, |
|
|
| $filename, |
|
|
| $extension ) |
◆ get_handler()
static Cache::get_handler |
( |
| $location, |
|
|
| $filename, |
|
|
| $extension ) |
|
static |
Create a new SimplePie\Cache object.
- Parameters
-
string | $location | URL location (scheme is used to determine handler) |
string | $filename | Unique identifier for cache object |
Base\TYPE_FEED | Base\TYPE_IMAGE | $extension | 'spi' or 'spc' |
- Return values
-
Base | Type of object depends on scheme of $location |
◆ parse_URL()
static Cache::parse_URL |
( |
| $url | ) |
|
|
static |
Parse a URL into an array.
- Parameters
-
- Return values
-
◆ register()
static Cache::register |
( |
| $type, |
|
|
| $class ) |
|
static |
Register a handler.
- Parameters
-
string | $type | DSN type to register for |
| class-string<Base> | $class Name of handler class. Must implement Base |
◆ $handlers
Initial value:= [
'mysql' => 'SimplePie\Cache\MySQL',
'memcache' => 'SimplePie\Cache\Memcache',
'memcached' => 'SimplePie\Cache\Memcached',
'redis' => 'SimplePie\Cache\Redis'
]
Cache handler classes.
These receive 3 parameters to their constructor, as documented in {
- See also
- register()}
The documentation for this class was generated from the following file:
- lib/simplepie/src/Cache.php