xPDOCacheManager.getCacheProvider
Last updated Dec 21st, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn morexPDOCacheManager::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¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn more