extends |
Smarty_CacheResource_Pdo |
|---|
PDO Cache Handler with GZIP support Example usage : $cnx = new PDO("mysql:host=localhost;dbname=mydb", "username", "password"); $smarty->setCachingType('pdo_gzip'); $smarty->loadPlugin('Smarty_CacheResource_Pdo_Gzip'); $smarty->registerCacheResource('pdo_gzip', new Smarty_CacheResource_Pdo_Gzip($cnx, 'smarty_cache'));
| Methods | ||
|---|---|---|
protected
|
inputContent(string $content): string
Encodes the content before saving to database
Encodes the content before saving to database Returns$content Overrides |
# |
protected
|
outputContent(string $content): string
Decodes the content before saving to database
Decodes the content before saving to database Returns$content Overrides |
# |
| Methods inherited from Smarty_CacheResource_Pdo |
|---|
__construct(), fillStatementsWithTableName(), getFetchStatement(), fetch(), save(), delete(), getTableName() |
| Methods inherited from Smarty_CacheResource_Custom |
|---|
fetchTimestamp(), populate(), populateTimestamp(), process(), writeCachedContent(), readCachedContent(), clearAll(), clear(), hasLock(), acquireLock(), releaseLock() |
| Methods inherited from Smarty_CacheResource |
|---|
getCachedContent(), locked(), load() |
| Properties inherited from Smarty_CacheResource_Pdo |
|---|
$fetchStatements, $insertStatement, $deleteStatement, $truncateStatement, $fetchColumns, $fetchTimestampColumns, $pdo, $table, $database |
| Properties inherited from Smarty_CacheResource |
|---|
$sysplugins |