SimplePie: PHP-based RSS and Atom feed handling
 
  • Overview
  • Demo
  • Blog
  • Download
  • Documentation
  • API Docs
  • Support
  • Issue Tracker
  • FAQ
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • SimplePie
    • API
    • Caching
    • HTTP
    • Parsing

Classes

  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL

Interfaces

  • SimplePie_Cache_Base

Class SimplePie_Cache

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 SimplePie_Cache::register()

Package: SimplePie\Caching
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/Cache.php
Methods summary
public static SimplePie_Cache_Base
# create( string $location, string $filename, string $extension )

Create a new SimplePie_Cache object

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_Base
Type of object depends on scheme of $location
public static
# register( string $type, string $class )

Register a handler

Parameters

$type
string
DSN type to register for
$class
string
Name of handler class. Must implement SimplePie_Cache_Base
public static array
# parse_URL( string $url )

Parse a URL into an array

Parameters

$url
string

Returns

array
Properties summary
protected static array $handlers array( 'mysql' => 'SimplePie_Cache_MySQL', 'memcache' => 'SimplePie_Cache_Memcache', )
#

Cache handler classes

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

Show some love! Wishlists for Geoffrey, Ryan P., and Ryan M.

SimplePie is © 2004–2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors. Licensed under the BSD License. Hosted thanks to Matt Mullenweg, API documentation generated by ApiGen 2.6.1. Variation on the Feed Icon by Wolfgang Bartelme.