Jump to main content Jump to doc navigation

xPDOCacheManager.getCacheProvider

Other versions: 3.x — Found a problem? Please edit this page or report an issue.

xPDOCacheManager::getCacheProvider

Get an instance of a provider which implements the xPDOCache interface. Defaults to xPDOFileCache.

Syntax

API Docs: http://api.modxcms.com/xpdo/cache/xPDOCacheManager.html#getCacheProvider

void &getCacheProvider ([ $key = ''], [ $options = array()])

Example

$cacheManager = $xpdo->getCacheManager();
$provider = $cacheManager->getCacheProvider('xPDOMemCache');

See Also