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.
$305 per month—let's make that $500!Learn more
Replace a key-value pair in in a cache provider.
boolean replace (string $key, mixed &$var, [integer $lifetime = 0], [array $options = array()])
Replace a key with a new value, to expire in 2 hours:
$str = 'A new value for the cache.'; $xpdo->cacheManager->replace('mystuff',$str,7200);