Back to Cache class

Method _getStorage

public \Joomla\CMS\Cache\CacheStorage
_getStorage
()
Get the cache storage handler
Returns
  • \Joomla\CMS\Cache\CacheStorage
Since
  • 1.7.0
Class: Cache
Project: Joomla

Method _getStorage - Source code

/**
 * Get the cache storage handler
 *
 * @return  CacheStorage
 *
 * @since   1.7.0
 */
public function &_getStorage()
{
    $hash = md5(serialize($this->_options));
    if (isset(self::$_handler[$hash])) {
        return self::$_handler[$hash];
    }
    self::$_handler[$hash] = CacheStorage::getInstance($this->_options['storage'], $this->_options);
    return self::$_handler[$hash];
}