Jump to main content Jump to doc navigation

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