CoreFiles by mySites.guru
CacheStorageHelper.php70 lines, 1,041 bytes, from Joomla_3.9.0-rc-Release_Candidate-Full_Package.zip
Raw History Compare with 3.8.12-rc
md5
d9f99d34b31c85794a9a64e05343817b
sha1
10797a2ddd7d6e6225b9b12e1ebb09d09da2ec48
sha256
e4c970d081aad66153a233de511c4521a54e07a05b8bd4084464e95cc1a6acf4
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Cache\Storage;

defined('JPATH_PLATFORM') or die;

/**
 * Cache storage helper functions.
 *
 * @since  11.1
 */
class CacheStorageHelper
{
	/**
	 * Cache data group
	 *
	 * @var    string
	 * @since  11.1
	 */
	public $group = '';

	/**
	 * Cached item size
	 *
	 * @var    string
	 * @since  11.1
	 */
	public $size = 0;

	/**
	 * Counter
	 *
	 * @var    integer
	 * @since  11.1
	 */
	public $count = 0;

	/**
	 * Constructor
	 *
	 * @param   string  $group  The cache data group
	 *
	 * @since   11.1
	 */
	public function __construct($group)
	{
		$this->group = $group;
	}

	/**
	 * Increase cache items count.
	 *
	 * @param   string  $size  Cached item size
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
	public function updateSize($size)
	{
		$this->size += $size;
		$this->count++;
	}
}

The same content is in 26 releases, Joomla 3.8.4-rc to 4.0.0-alpha3. See them all, or every version of this file.