[cleanup] Remove deprecated pattern &CRM_Core_Config::singleton()
[civicrm-core.git] / tools / bin / scripts / memcache.php
CommitLineData
6a488035 1<?php
48b420d7 2require_once '../civicrm.config.php';
6a488035
TO
3require_once 'CRM/Core/Config.php';
4require_once 'CRM/Utils/Cache.php';
5
6define('CIVICRM_USE_MEMCACHE', 1);
7
f3a87cf4 8$config = CRM_Core_Config::singleton();
9$cache = CRM_Utils_Cache::singleton();
6a488035 10
0e04f44e 11$cache->set('CRM_Core_Config' .CRM_Core_Config::domainID(), $config);
12CRM_Core_Error::debug('get', $cache->get('CRM_Core_Config' . CRM_Core_Config::domainID()));
6a488035 13