36 lines
680 B
PHP
36 lines
680 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Ion
|
||
|
*
|
||
|
* Building blocks for web development
|
||
|
*
|
||
|
* @package Ion
|
||
|
* @author Timothy J. Warren
|
||
|
* @copyright Copyright (c) 2015 - 2016
|
||
|
* @license MIT
|
||
|
*/
|
||
|
|
||
|
namespace Aviat\Ion\Cache;
|
||
|
|
||
|
/**
|
||
|
* Interface for cache drivers
|
||
|
*/
|
||
|
interface CacheDriverInterface {
|
||
|
/**
|
||
|
* Retreive a value from the cache backend
|
||
|
*
|
||
|
* @param string $key
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function get($key);
|
||
|
|
||
|
/**
|
||
|
* Set a cached value
|
||
|
*
|
||
|
* @param string $key
|
||
|
* @param mixed $value
|
||
|
* @return CacheDriverInterface
|
||
|
*/
|
||
|
public function set($key, $value);
|
||
|
}
|
||
|
// End of CacheDriverInterface.php
|