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

Interface SimplePie_Cache_Base

Base for cache objects

Classes to be used with SimplePie_Cache::register() are expected to implement this interface.

Direct known implementers

SimplePie_Cache_DB, SimplePie_Cache_File, SimplePie_Cache_Memcache

Indirect known implementers

SimplePie_Cache_MySQL
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/Base.php
Methods summary
public
# __construct( string $location, string $name, string $type )

Create a new cache object

Parameters

$location
string
Location string (from SimplePie::$cache_location)
$name
string
Unique ID for the cache
$type
string
Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
public boolean
# save( array|SimplePie $data )

Save data to the cache

Parameters

$data
array|SimplePie
Data to store in the cache. If passed a SimplePie object, only cache the $data property

Returns

boolean
Successfulness
public array
# load( )

Retrieve the data saved to the cache

Returns

array
Data for SimplePie::$data
public integer
# mtime( )

Retrieve the last modified time for the cache

Returns

integer
Timestamp
public boolean
# touch( )

Set the last modified time to the current time

Returns

boolean
Success status
public boolean
# unlink( )

Remove the cache

Returns

boolean
Success status
Constants summary
string TYPE_FEED 'spc'
#

Feed cache type

string TYPE_IMAGE 'spi'
#

Image cache type

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.