CoreFiles by mySites.guru
CacheStorageHelper.php70 lines, 1,035 bytes, from Joomla_4.2.5-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.3-rc1
md5
3bb0096c4b13722a11d0c4638734e4f1
sha1
155c623347aaea643259ba46688687b3395954bb
sha256
5f14a0663d05e41b00d94c5ba8dbfaeca8f125a78848104027ebaa7ddaa29ab1
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
 * @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  1.7.0
 */
class CacheStorageHelper
{
	/**
	 * Cache data group
	 *
	 * @var    string
	 * @since  1.7.0
	 */
	public $group = '';

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

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

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

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

The same content is in 62 releases, Joomla 4.0.0-beta6 to 4.2.5-rc1. See them all, or every version of this file.