PEAR2_Templates_Savant_Turbo › PEAR2_Templates_Savant_Turbo-0.1.0/php/PEAR2/Templates/Savant/Turbo/CacheInterface.php
- PEAR2_Templates_Savant_Turbo-0.1.0/
- doc/
- pear2.php.net/
- PEAR2_Templates_Savant_Turbo/
- examples/
- examples/
- examples/
- PEAR2_Templates_Savant_Turbo/
- pear2.php.net/
- php/
- PEAR2/
- Autoload.php
- Exception.php
- MultiErrors/
- MultiErrors.php
- Templates/
- Savant/
- PEAR2/
- doc/
- package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* Interface cacheable objects must implement
*
* @author bbieber
*/
namespace PEAR2\Templates\Savant\Turbo;
interface CacheInterface
{
/**
* Get an item from the cache
* @param string $key They unique key for the cached item.
*
* @return mixed
*/
public function get($key);
/**
* Save an item to the cache.
*
* @param mixed $data The data to save to the cache.
* @param string $key Unique key for this data.
*
* @return bool
*/
public function save($data, $key);
}
EOF
