Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<?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 );
}