Overview

Packages

  • None
  • SimplePie

Classes

  • SimplePie
  • SimplePie_Author
  • SimplePie_Autoloader
  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL
  • SimplePie_Caption
  • SimplePie_Category
  • SimplePie_Content_Type_Sniffer
  • SimplePie_Copyright
  • SimplePie_Core
  • SimplePie_Credit
  • SimplePie_Decode_HTML_Entities
  • SimplePie_Enclosure
  • SimplePie_File
  • SimplePie_gzdecode
  • SimplePie_HTTP_Parser
  • SimplePie_IRI
  • SimplePie_Item
  • SimplePie_Locator
  • SimplePie_Misc
  • SimplePie_Net_IPv6
  • SimplePie_Parse_Date
  • SimplePie_Parser
  • SimplePie_Rating
  • SimplePie_Registry
  • SimplePie_Restriction
  • SimplePie_Sanitize
  • SimplePie_Source
  • SimplePie_XML_Declaration_Parser

Interfaces

  • SimplePie_Cache_Base
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class SimplePie_Cache_Memcache

Caches data to memcache

Registered for URLs with the "memcache" protocol

For example, memcache://localhost:11211/?timeout=3600^prefix=sp_ will connect to memcache on localhost on port 11211. All tables will be prefixed with sp_ and data will expire after 3600 seconds

SimplePie_Cache_Memcache implements SimplePie_Cache_Base
Package: SimplePie
Uses: Memcache
Located at SimplePie/Cache/Memcache.php
Methods summary
public
# __construct( string $location, string $name, string $type )

Create a new cache object

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

Implementation of

SimplePie_Cache_Base::__construct
public boolean
# save( array|SimplePie $data )

Save data to the cache

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

Implementation of

SimplePie_Cache_Base::save
public array
# load( )

Retrieve the data saved to the cache

Retrieve the data saved to the cache

Returns

array
Data for SimplePie::$data

Implementation of

SimplePie_Cache_Base::load
public integer
# mtime( )

Retrieve the last modified time for the cache

Retrieve the last modified time for the cache

Returns

integer
Timestamp

Implementation of

SimplePie_Cache_Base::mtime
public boolean
# touch( )

Set the last modified time to the current time

Set the last modified time to the current time

Returns

boolean
Success status

Implementation of

SimplePie_Cache_Base::touch
public boolean
# unlink( )

Remove the cache

Remove the cache

Returns

boolean
Success status

Implementation of

SimplePie_Cache_Base::unlink
Constants inherited from SimplePie_Cache_Base
TYPE_FEED, TYPE_IMAGE
Properties summary
protected Memcache $cache
#

Memcache instance

Memcache instance

protected array $options
#

Options

Options

protected string $name
#

Cache name

Cache name

SimplePie Documentation API documentation generated by ApiGen 2.4.0