Caches data to a MySQL database
Registered for URLs with the "mysql" protocol
For example, mysql://root:password@localhost:3306/mydb?prefix=sp_
will
connect to the mydb
database on localhost
on port 3306, with the user
root
and the password password
. All tables will be prefixed with sp_
package | SimplePie |
---|---|
subpackage | Caching |
inherited_from | \SimplePie_Cache_DB |
__construct(string $location, string $name, string $type)
string
Location string (from SimplePie::$cache_location)
string
Unique ID for the cache
string
Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
load() : array
array
Data for SimplePie::$datamtime() : integer
integer
Timestampsave(array|\SimplePie $data) : boolean
array
\SimplePie
Data to store in the cache. If passed a SimplePie object, only cache the $data property
boolean
Successfulnesstouch() : boolean
boolean
Success statusunlink() : boolean
boolean
Success statusprepare_simplepie_object_for_cache(\SimplePie $data) : array
Converts a given \SimplePie object into data to be stored
\SimplePie
array
First item is the serialized data for storage, second item is the unique ID for this item$id : string
$mysql : \PDO