Constructs a new instance of this class.
Tested with MySQL 5.0.x, PostgreSQL, and SQLite 3.x. SQLite 2.x is assumed to work. No other PDO-supported databases have been tested (e.g. Oracle, Microsoft SQL Server, IBM DB2, ODBC, Sybase, Firebird). Feel free to send patches for additional database support.
See http://php.net/pdo for more information.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
A name to uniquely identify the cache object. |
|
|
Optional |
The location to store the cache object in. This may vary by cache method. The default value is NULL. |
|
|
Optional |
The number of seconds until a cache object is considered stale. The default value is 0. |
|
|
Optional |
Whether data should be gzipped before being stored. The default value is true. |
Returns
Type |
Description |
---|---|
Reference to the cache object. |
Source
Method defined in lib/cachecore/cachepdo.class.php | Toggle source view (46 lines) | View on GitHub