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
| package | SimplePie |
|---|---|
| subpackage | Caching |
| uses |
__construct(string $location, string $name, string $type)
| inherited_from | \SimplePie_Cache_Base::__construct() |
|---|
stringLocation string (from SimplePie::$cache_location)
stringUnique ID for the cache
stringEither TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
load() : array
| inherited_from | \SimplePie_Cache_Base::load() |
|---|
arrayData for SimplePie::$datamtime() : integer
| inherited_from | \SimplePie_Cache_Base::mtime() |
|---|
integerTimestampsave(array|\SimplePie $data) : boolean
| inherited_from | \SimplePie_Cache_Base::save() |
|---|
array\SimplePieData to store in the cache. If passed a SimplePie object, only cache the $data property
booleanSuccessfulnesstouch() : boolean
| inherited_from | \SimplePie_Cache_Base::touch() |
|---|
booleanSuccess statusunlink() : boolean
| inherited_from | \SimplePie_Cache_Base::unlink() |
|---|
booleanSuccess status$cache : \Memcache
$name : string