CoreFiles by mySites.guru
CacheStorageHelper.php70 lines, 1,182 bytes, from Joomla_4.2.5-Stable-Full_Package.zip
Raw History Compare with 4.2.4
md5
5353137335f0b0de376991e1a500d392
sha1
e217abef8a90d3065765392603846bf755fbcd7c
sha256
00974ac32079fbfd62b79c8950b052c8f37ac8bf2d38639d201594ae231832f0
<?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 11 releases, Joomla 4.2.5 to 4.3.0-alpha3. See them all, or every version of this file.