PHP 8.1.33
Preview: CacheStorageHelper.php Size: 1.01 KB
/home/jambtst2015/9jahookups.com/libraries/src/Cache/Storage/CacheStorageHelper.php

<?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++;
	}
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
6.78 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
1.01 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
17.32 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
9.70 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
6.84 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download
4.13 KB lrw-r--r-- 2021-08-23 19:07:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).