b0y-101 Mini Shell


Current Path : E:/www/km/08/libraries/rokcommon/RokCommon/Cache/
File Upload :
Current File : E:/www/km/08/libraries/rokcommon/RokCommon/Cache/AbstractCache.php

<?php
/**
 * @version   $Id: AbstractCache.php 10831 2013-05-29 19:32:17Z btowles $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2016 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

abstract class RokCommon_Cache_AbstractCache implements RokCommon_ICache
{
	/**
	 * Constructor
	 *
	 * @param int $lifeTime
	 */
	public function __construct($lifeTime = self::DEFAULT_LIFETIME)
	{
		$this->lifeTime = $lifeTime;
	}

	/**
	 * @var int
	 */
	protected $lifeTime = self::DEFAULT_LIFETIME;

	/**
	 * Sets the lifetime of the cache
	 *
	 * @abstract
	 *
	 * @param  int $lifeTime Lifetime of the cache
	 *
	 * @return void
	 */
	public function setLifeTime($lifeTime)
	{
		$this->lifeTime = $lifeTime;
	}
}

Copyright © 2019 by b0y-101