/** * Instantiates a cache adapter * * @param string $adapter The cache adapter to instantiate. Defaults to apc. * @return Koch_Cache_Interface Cache object of the requested adapter type. */ public static function instantiate($adapter = 'apc') { if (self::$cacheObject === null) { self::$cacheObject = Koch_Cache_Factory::getCache($adapter); } return self::$cacheObject; }
/** * Instantiates a cache adapter. * * @param string $adapter The cache adapter to instantiate. Defaults to apc. * * @return KochCache_Interface Cache object of the requested adapter type. */ public static function instantiate($adapter = 'apc') { if (self::$cacheAdapter === null) { self::$cacheAdapter = self::factory($adapter); } return self::$cacheAdapter; }